Akshay Saini · 19 Core Episodes

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.

19Episodes
40+Code samples
9Closure Q&As
6Interview soundbites

One-Line Cheat Sheet — click a row to jump

# Topic Crux
No concepts match that search.

Interview Quick-Hit Soundbites

Hoisting

"Function declarations are fully hoisted; var is hoisted as undefined; let/const are hoisted but sit in the Temporal Dead Zone."

Closure

"A function bundled with references to its lexical environment — it remembers outer variables even after the outer function has returned."

Event Loop

"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)."

setTimeout(…, 0)

"Not immediate — it defers the callback until the call stack is clear."

this at global scope

"Equals the global object — window in browsers."

map vs forEach

"map returns a new transformed array; forEach just iterates and returns undefined."