The Event Loop, Demystified: how JavaScript decides what runs next
"Predict the output" questions trip up almost everyone — not because the event loop is hard, but because nobody taught the three buckets. A foolproof mental model for synchronous code, microtasks, and macrotasks.