# break

*noun*

say it: **“BRAYK”** **/breɪk/**

A keyword that stops a loop, or a switch, right away and jumps to the code after it.

## 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;
}
```

## In a sentence

- “As soon as the search found the red bike, **break** stopped the loop.”

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

Updated: November 9, 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)
- [break in PowerShell](https://www.ask-codey.com/glossary/break-powershell)
- [break in Python](https://www.ask-codey.com/glossary/break)
- [break in Unix](https://www.ask-codey.com/glossary/break-unix)

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