Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardNodeJSmicrotasks vs timer phaseSingle-choice MCQ

What is the relationship between the process.nextTick queue and the Promise microtask (V8 microtask) queue when both have pending work after a single macrotask callback returns?

Promise.resolve().then(() => console.log('promise')); process.nextTick(() => console.log('nextTick'));