Introduction
The break statement helps you stop a loop or switch case early when you want to exit before it finishes all steps.
When you find the item you are looking for in a list and want to stop searching.
When a condition inside a loop means you no longer need to continue looping.
When you want to exit a switch case after one case is done to avoid running other cases.
When you want to stop a game loop as soon as the player loses.
When you want to exit nested loops early after a certain condition is met.