JavaScript
JavaScript BreakJavaScript Break
JavaScript break statements jump out of a loop early.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
JavaScript uses the `break` statement to stop a loop immediately, even if the condition is still true. Developers use this when searching for a specific item; once they find it, there is no need to keep searching.
Example
Example
Key Points
- The `break` statement kills the loop entirely.
- The `continue` statement skips only the current iteration.
- Switch statements also rely on `break`.
- Using `break` makes code run faster by stopping unnecessary work.