Question · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript

Microtask vs Macrotask

Which of the following is a microtask?

Answer options

  • setTimeout()
  • Promise.then()
  • setInterval()
  • requestAnimationFrame()

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