Skip to content

Glossary: JavaScript Basics

break

A keyword that leaves a loop or a `switch` case immediately. In a `switch`, forgetting it makes the code run on into the next case.

Where the book teaches it

Related terms

switchcontinue