The Leaderboard That Ranked 9 Points Above 100
Why JavaScript's sort() compares numbers as strings, why a 'lazy' comparator works in Safari but breaks in Chrome, and the one-line fix.
Why JavaScript's sort() compares numbers as strings, why a 'lazy' comparator works in Safari but breaks in Chrome, and the one-line fix.
Two patterns for taming fast events: debounce waits for silence, throttle limits how often. With examples, code, and interview answers.
`||` treats 0 and '' as missing. `??` only treats null/undefined as missing. Know the difference before it bites you in an interview or in prod.
Generators let you produce values on demand instead of all at once. Learn how iterators and generator functions work, and when to reach for them.
What queueMicrotask does, how it differs from Promise.then, and how microtasks really work under the hood.
Async/await feels like parallel code, but it isn’t. Here’s why JavaScript is still single-threaded and how async really works.
If JavaScript is single-threaded, how can Promise.all handle multiple requests at the same time? A deep dive into the event loop and async I/O.
A practical and conceptual comparison of Promise.all, Promise.race, Promise.any, and Promise.allSettled.
How Web Workers work, why they matter, and when to use them to achieve real parallelism in frontend apps.
How to communicate between browser tabs, windows, or iframes easily using the BroadcastChannel API.
Understand the difference between shallow and deep copies, with examples and pitfalls.
Everything you need to cancel async work in JS: fetch, streams, custom tasks, React patterns, Node notes, timeouts, races, and common pitfalls.
What closures are, how they work (lexical scope), and how to use them without pitfalls.
A simple but deep dive into how Promises work in JavaScript and why they matter.
Understand what it means when people say JS is single-threaded.
A polished, practical event bus pattern with minimal JS, a strongly-typed TS version, wildcards, once-handlers, and React usage tips.
Event loop explained with a clean SVG timeline showing the actual execution order: Start → End → Promise → Timeout.
Understand microtasks and macrotasks across browsers and Node.js, including process.nextTick, setImmediate, and event loop phases.
Understand how events travel through the DOM: bubbling (bottom-up) vs capturing (top-down) with simple examples and mental models.
Understand the difference between synchronous and asynchronous code in JavaScript with simple examples and analogies.