Which queue has the highest priority in Node.js?
- A setTimeout callbacks
- B process.nextTick callbacks
- C Promise microtasks
- D setImmediate callbacks
Answer
process.nextTick callbacks
The nextTick queue is drained after the current operation and before promise microtasks or any event loop phase. Recursive nextTick calls can starve the loop entirely.





