Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardNodeJSprocess.nextTick queue orderSingle-choice MCQ

Within the nextTick queue itself, if a nextTick callback schedules ANOTHER nextTick and also a resolved promise, what is the drain order?

process.nextTick(() => { console.log('outer'); process.nextTick(() => console.log('inner-nextTick')); Promise.resolve().then(() => console.log('inner-promise')); });