Step through a sample program and watch the call stack, microtask queue (Promise callbacks) and macrotask queue (setTimeout callbacks) fill and drain. The order of the console output stops being mysterious once you can see the machine that produces it.
Keys: ← → step · Space play/pause · Home reset