# break

Stops a loop immediately.

## What does **break** do in JavaScript?

**break** — Stops a loop immediately.

```javascript
for (const number of numbers) {
    if (number % 2 === 0) {
        continue;
    }

    firstOdd = number;
    break;
}
```

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

Updated: September 27, 2026

## In other subjects

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

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