function loop() {
Promise.resolve().then(loop);
}
loop();
This code demonstrates microtask queue starvation: 1) Creates an infinite chain of microtasks, 2) Prevents macrotasks from ever executing, 3) Can freeze the browser UI, 4) No opportunity for rendering or user interaction, 5) Shows why microtask usage should be carefully managed, 6) Common anti-pattern in async programming.