Playground
Your code on the left · the event loop running it on the right. Supported: console.log · setTimeout · Promise.resolve().then(...) chains · queueMicrotask · async/await (incl. await new Promise(r => setTimeout(r, ms))) · your own functions.
← → step · space play