Continue and Break
In for-loops and while-loops, the continue
statement can be used to stop the current iteration of a loop and start the next iteration.
The break
statement can be used to stop the execution of a for-loop or a while-loop.
Last updated