What does `Promise.race()` resolve or reject with?

JavaScript Developer Hard

JavaScript Developer — Hard

What does `Promise.race()` resolve or reject with?

Key points

  • `Promise.race()` resolves with the value of the first promise to settle
  • It does not wait for all promises to complete
  • It is useful for scenarios where you only care about the fastest result

Ready to go further?

Related questions