JavaScript

Event loop (JavaScript)

The scheduler draining the microtask queue completely between every macrotask.

Why interviewers ask about it

The orderable example is the test: promises resolve before setTimeout(0). A microtask that keeps scheduling microtasks starves the loop entirely.

This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.