Node.js · Middle · Question 1 of 75
Which list shows the main phases of the Node.js event loop in order?
- 1poll → timers → close callbacks → check
- 2microtasks → macrotasks → render
- ✓Correct answer: timers → pending callbacks → poll → check → close callbacks
Explanation
Timers run setTimeout/setInterval callbacks, poll waits for and runs I/O callbacks, check runs setImmediate, close runs close events. There is no render step: that's a browser concept.