IK
Interview Knowledge Book
Topics
Practice
Examples
Playground
RU
browser
Event loop output order
Edit and run a small browser JavaScript example that captures console output.
index.js
console.log('sync'); setTimeout(() => console.log('task'), 0); Promise.resolve().then(() => console.log('microtask'));
Run
Stop
Reset