Browser bank The Event Loop Browser / 6 questions Your progress 0 / 6 done Saved in this browser. Reset All 6 Medium 3 Hard 3 Hide done No questions match those filters. 1 Explain the event loop, the call stack, and the task queue. Medium 2 What's the difference between a microtask and a macrotask, and which runs first? Medium 3 Predict the output order of `setTimeout`, `Promise.then`, and synchronous code — and explain why. Medium 4 Where do `queueMicrotask`, `requestAnimationFrame`, and `requestIdleCallback` fit in the loop? Hard 5 How can a long synchronous task or a microtask loop starve rendering, and how do you fix it? Hard 6 Why does `await` schedule the continuation as a microtask, and what does that mean for ordering? Hard ← Previous Rendering Pipeline Next → DOM & Events