micro task Queue consist of callbacks/resolved functions from fetch, async/await. but why its given more priority then callback queue because sync code is executed first and then afterward async function is executed then why/how microtask queue is given more priority then callback queue ?
I read more about the concept but still confused on it.
New contributor
Chandni Dalal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.