What are macro and micro-tasks in JavaScript?
Before jumping onto macro and micro-tasks, let's quickly see how the event loop works.
Event loop
An Event Loop in JavaScript is a constantly running process that keeps a tab on the call stack.
Checks if the call stack is empty
Takes a callback(or ...
rupamdas.hashnode.dev5 min read