I would like to share coding tips during interview. If anyone has useful suggestions, please comment.
- Have separate functions for separate logic
- Give comments// if necessary
- Proper variable naming Eg:
var IsEligible = true, instead of var a = true
- Use inbuilt functions instead of creating own Eg: In JS to sort use,
array.sort()
and focus on big problem instead of writing sort algorithm. Ofcourse don't use sort() if question itself is sorting.