All challenges
Multiple ChoiceIntermediate 30s

Promise.resolve vs new Promise

Choose the best answer for: Promise.resolve(value)
Options
  1. 1new Promise is for error handling only, unlike Promise.resolve which resolves
  2. 2They are identical except Promise.resolve is always synchronous and eager
  3. 3Promise.resolve is slower because it runs the executor eagerly on creation
  4. 4Promise.resolve returns already-resolved; new Promise runs executor lazily

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