How JavaScript actually works.
An interactive companion to the Namaste JavaScript series — every concept, the gotchas that trip people up, and runnable code for quick interview prep. Click any episode to expand.
One-Line Cheat Sheet — click a row to jump
| # | Topic | Crux |
|---|
Interview Quick-Hit Soundbites
"Function declarations are fully hoisted; var is hoisted as undefined; let/const are hoisted but sit in the Temporal Dead Zone."
"A function bundled with references to its lexical environment — it remembers outer variables even after the outer function has returned."
"Call stack runs sync code; async callbacks wait in the callback/microtask queues; the event loop pushes them when the stack is empty. Microtasks (Promises) outrank tasks (setTimeout)."
"Not immediate — it defers the callback until the call stack is clear."
"Equals the global object — window in browsers."
"map returns a new transformed array; forEach just iterates and returns undefined."