# for await...of

A loop that awaits and visits values from an async iterable.

## What is **for await...of** in JavaScript?

**for await...of** — A loop that awaits and visits values from an async iterable.

```javascript
async function readMessages(messages) {
    for await (const message of messages) {
        saveMessage(message);
    }
}
```

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/for-await-of
