Reviews/reviews
Practice Quiz
Verdict
await
Correct Sure
Since V8 7.2 an await of a native promise takes one microtask tick.
async
undefined
I don't know
The function body runs inside the promise machinery, so a throw becomes a rejection.
await null
await setImmediate
process.nextTick
Incorrect
Only a macrotask boundary lets the loop reach the poll phase. Microtasks and nextTick run before it.
nextTick
Promise.all
Correct
Promises are not cancellable. The other operations continue and their results are dropped.
main
After a suspension the synchronous stack is gone. Async stack traces rebuild it from the await chain.