Explore Library
Quiz

Ordering of Microtasks and Timer Phases

Understanding how process.nextTick, Promises, and timers interleave within a single event loop iteration.

In Node.js, when a phase callback (e.g. a setTimeout callback) finishes executing, which queues are drained BEFORE the event loop advances to the next callback in that same phase?