# Iterator

say it: **“IT-uh-ray-ter”** **/ˈɪtəreɪtər/**

Gives out items one at a time with next() and remembers where it is.

## What is **Iterator** in JavaScript?

**Iterator** — Gives out items one at a time with next() and remembers where it is.

```javascript
const iterator = ["Ada", "Lin"][Symbol.iterator]();
const first = iterator.next();
```

Level: Freelancer · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=4)

Updated: November 17, 2026

## In other subjects

- [Iterator in C#](https://www.ask-codey.com/glossary/iterator-c-sharp)
- [Iterator in Java](https://www.ask-codey.com/glossary/iterator-java)
- [Iterator in Python](https://www.ask-codey.com/glossary/iterator)

Source: https://www.ask-codey.com/glossary/iterator-javascript
