Many developers wonder whether JavaScript is interpreted or compiled. The answer is that it is both. When you write a function it feels like the engine just takes your code and runs it. In reality ...
- Always use a comparator function when sorting numbers. [10, 2].sort () results in [10, 2] because it sorts as strings. - Remember that most native array methods mutate the original array.