1. Call stack (running now)
Timer (waiting in the browser)
2. Microtask queue (promises)
3. Task queue (timers, clicks)
Console output
Next step
Back
Reset
The event loop running the four-line program. Orange items are promise callbacks, grey items are waiting for their turn.