Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScripttop-level await orderingSingle-choice MCQ

Within a single module, how do top-level `await` expressions interleave with already-scheduled microtasks?

console.log('A'); await null; Promise.resolve().then(() => console.log('C')); await 0; console.log('D');