What is the order of execution of these queues?
- Promises
- setTimout callbacks
- Promises are stored in the microtask queue
- setTimout callbacks are stored in the callback queue
Microtask queue is executed first, then the callback queue.
What is the order of execution of these queues?
Microtask queue is executed first, then the callback queue.