# for...of Loop

A loop that visits the values produced by an iterable.

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

**for...of Loop** — A loop that visits the values produced by an iterable.

```javascript
for (const pet of pets) {
    petNames.push(pet.name);
}
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/for-of-loop
