Blog / fundamentals

Posts tagged fundamentals

2 posts filed under this topic.

  • Closures Are About Lifetime, Not Nesting — A function does not capture a snapshot of a variable — it keeps the binding alive. That distinction explains the loop bug, stale callbacks, private state, and the memory leaks that survive long after the request is gone. 2026-11-02 · 15 min read
  • The Event Loop Is a Scheduler, Not a Queue — A deep guide to how JavaScript runs timers, promises, rendering, and I/O on one thread — in browsers and in Node.js — and why "setTimeout(fn, 0)" is not a promise to run immediately. 2026-10-30 · 18 min read