Question PRG-JS-0078
HardWhat is the difference between microtasks and macrotasks in the event loop?
- A.
All queued microtasks (promise callbacks) run before the next macrotask (timers, I/O)
- B.
Macrotasks always run first
- C.
Sign up free to see the answer and a step-by-step explanation.