Which of the following correctly describes how the event loop processes microtasks vs macrotasks?

JavaScript Developer Medium

JavaScript Developer — Medium

Which of the following correctly describes how the event loop processes microtasks vs macrotasks?

Key points

  • Microtasks are prioritized over macrotasks in the event loop
  • This ordering allows for more immediate execution of microtasks
  • Macrotasks are only processed after all microtasks are completed

Ready to go further?

Related questions