Answer
Microtasks include promise callbacks and queueMicrotask. Macrotasks include timers, I/O callbacks, and setImmediate. Microtasks run before macrotasks within each event loop cycle.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ