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

Promise.race

What does Promise.race() return?

Answer options

  • An object with status and value fields for each Promise
  • The result of the first Promise to settle (fulfilled or rejected)
  • An array of all Promise results
  • Always the first element from the Promise array

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