Traversing an Array in JavaScript

Are for loops in JavaScript run at O(n) or O(n^2)? It's an entertaining read even though the author doesn't get to a strong conclusion.

comments powered by Disqus