Рет қаралды 170
This video helps you in understanding order of execution of task queue, micro task queue by Javscript engine Event loop.
Here you will get a glimpse of order of execution of sync, async functions in Javascript.
Just remember
1. timer adds new tasks, promise.then adds new microtask
2. microtasks are flushed before next task
Will be a posting a question daily. Hit the red button down to stay updated.