break and continue
break
statement
The break statement is used to exit a loop prematurely when a certain condition is met.
Examples:
continue
statement
The continue statement is used to skip the current iteration of a loop and move to the next iteration.
Examples:
Here are some examples using continue statements