Break/Continue
These can be used in any of the loop constructs.
Break
If you need exit out of a loop in the middle of an iteration you use the break statement.
Continue
If you want to skip the remaining steps in an iteration, but continue on with the next iteration, you use the continue statement;
Last updated
Was this helpful?