# Promise.race()

A method returning a Promise that settles when the first input settles.

## What does **Promise.race()** do in JavaScript?

**Promise.race()** — A method returning a Promise that settles when the first input settles.

```javascript
const first = await Promise.race([request, timeout]);
```

Level: Freelancer · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/freelancer)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/promise-race
