Skip to content

Glossary: Go Basics

break

A keyword that leaves a loop immediately, skipping any remaining passes. For example, it can stop a loop over the days of the week once Friday is reached.

Where the book teaches it

Related terms

continuefor