In which queues are the following async objects stored?
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.