# Iterator

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/subjects/javascript/freelancer)

Updated: September 27, 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)

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