Games Node.js Loop Quest Round the loop
An immediate inside an immediate
A setImmediate callback queues another setImmediate. One more is already waiting.
setImmediate(() => { console.log('immediate 1'); setImmediate(() => console.log('immediate 3'));});setImmediate(() => console.log('immediate 2'));1. Predict the output
Tap the lines in the order you think they print.
- 1…
- 2…
- 3…