Arcade
Event Loop
Phase 03 · Systems ThinkingPlayable
Order the log lines before the microtasks, timers and paints run.
console.log('A');
function greet() {
console.log('B');
}
greet();
console.log('C');- Click the lines below in the order they print.
Unplaced
No queues involved. Order the three lines.
Place 3 more lines.
Submit an order first. The walkthrough shows both queues after every tick, right or wrong.
Run
Synchronous code runs to completion on the call stack. The event loop is not consulted at all until the stack is empty.