Games Node.js Loop Quest The VIP line
nextTick cuts in
A promise callback, then a nextTick written after it.
Promise.resolve().then(() => console.log('promise'));process.nextTick(() => console.log('nextTick'));console.log('sync');1. Predict the output
Tap the lines in the order you think they print.
- 1…
- 2…
- 3…