Lots of coding interview questions involve writing and optimizing loops. Yet I see a lot of people struggle break out of .forEach()/.map()/etc I highly recommend learning your for/for-of/while/break/continue/etc syntaxes as well as recursive looping, closures, etc
1
0
46
4K
12
These tend to be asked because they are trying to see if you have an understanding of time complexity (and often space complexity). Learn what those are, how to recognize them O(N) vs O(log N) vs O(N^2) etc, and common strategies for optimizing them