Put in order · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript

Code Processing by the Event Loop

Arrange the order in which the Event Loop processes code:

Items to put in order

  • Check the microtask queue (Promise.then)
  • Check the macrotask queue (setTimeout)
  • Execute synchronous code in the call stack
  • Return to checking the call stack

You can check the correct answer by solving this task in the CodeWorlds game.