Imagine your code has, one after another, a console.log, a setTimeout with zero delay, a Promise.resolve().then and an async function with an await. In what order will these run, and why?
~4 min by voice
How to approach it
The interviewer wants to see whether you understand the event loop model: the synchronous stack, the macrotask and microtask queues, their priority, and the fact that async/await is built on top of promises. It's not enough to name the order; you need to explain it and show where it affects real code.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.