JavaScript Event Loops
The execution model that governs all asynchronous JavaScript. Call stack mechanics, microtask vs macrotask queue priority, process.nextTick semantics, and the precise ordering rules that trip up even senior engineers.
12
Event Loop: Call Stack, Microtasks & Macrotasks
intermediateHow the call stack, microtask queue, and task queues orchestrate all JavaScript execution. The HTML spec algorithm, LIFO stack mechanics, microtask checkpoints, process.nextTick priority, rendering interleaving, and microtask starvation — with step-by-step execution traces.
25 min read
process.nextTick vs Promises in Node.js
intermediateThe precise relationship between process.nextTick and Promise microtasks in Node.js. Event loop phases, nextTick starvation, setImmediate vs setTimeout(0), and when nextTick is actually the right tool.
18 min read