Event Loop Node.js Interview Questions
6 curated event loop interview questions for Node.js — with short answers, detailed explanations, and interview tips. Ideal for Fresh through Tech Lead prep.
Describe the Node.js event loop phases at a high level.
Fresh / InternConcept
What is the difference between `process.nextTick` and `Promise.then` / queueMicrotask?
JuniorComparison
setTimeout(fn, 0) vs setImmediate(fn) — which runs first?
JuniorCode Output
How can heavy synchronous work break the event loop?
Mid-LevelDebugging
Scenario: API p99 latency jumps but CPU is low. Event loop related?
SeniorScenario
Lead: how do you teach teams to reason about event-loop safety?
SeniorArchitecture