Intermediate JavaScript
The language's own idioms, classic data structures and algorithms, testing and packaging.
-
Lesson 18 min read
Big O notation in JavaScript: count steps, spot the hidden loop
Learn Big O notation in JavaScript by counting steps instead of seconds. Meet O(1), O(log n), O(n), O(n log n) and O(n²), see which array methods hide a loop, and fix a slow includes loop with a Set, with real output from Node.