Glossary term
What is microtask queue? Meaning for developers
A higher-priority queue for promise callbacks. It is fully drained before the event loop takes anything from the callback queue.
Learn it properly · JavaScript CoreLesson 14: Async JS and the Event LoopCall stack, Web APIs, callback queue, microtask queue and the event loop that ties them together, stepped tick by tick — plus async/await, where rendering fits, starvation, and why setTimeout(0) is not 0.