[Frontend Note] What are macrotasks and microtasks in the EventLoop
Use macrotasks and microtasks to fully understand asynchronous behavior in Javascript
When asynchronous behavior is mentioned in Javascript, names like `setTimeout`, `Promise`, and `async/await` immediately come to mind. However, while learning about V8 and the browser recently, I realized that although these three are all asynchronous on a macro level, they are actually quite different on a micro level.
Posted byJamie Monday, October 31, 2022