Breaking Out of Loops
In all the loops (for, while, and do), the loop ends when the condition you’re testing for is met. What happens if something odd occurs within the body of the loop and you want to exit the loop early? For that, you can use the break and continue keywords