All challenges
Multiple ChoiceHard 30s

Event Loop Order

A resolved Promise's .then callback runs:
Options
  1. 1Synchronously, before any other queued callback can run
  2. 2After all setTimeout callbacks have finished running completely
  3. 3In the macrotask queue, alongside setTimeout and setInterval
  4. 4In the microtask queue, before the next macrotask (setTimeout)

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle