Introduction
The break statement stops a loop or switch early. It helps you exit when you found what you need or want to stop repeating.
When searching for a specific item in a list and you want to stop once found.
When you want to exit a loop if a certain condition happens.
When you want to stop checking cases in a switch statement after one matches.
When you want to avoid unnecessary work inside a loop once a goal is reached.