Event Loop Visualizer Playground

Mrs. Sari’s warung: the hearth is the call stack, the notes on the string are microtasks, the line outside is macrotasks; guess the order the dishes come out…

The key idea

Microtasks always fully drain before one macrotask

Try it in this playground