FrontendInterviews.dev

674. Promise.then vs queueMicrotask Order

Easy•

Predict the output.

Promise.resolve().then(() => console.log('p'))
queueMicrotask(() => console.log('q'))
console.log('s')

What is printed in the console?

Select an option and submit your answer.
Next Problem