Break and Continue part 1
Break
The break statement "jumps out" of a loop and continues executing the code after the loop.
Once i reaches 5, it will break out of the loop.
You can use the return keyword to return some value immediately from the loop inside of a function. This will also break the loop.
The "break" statement:
Comments
Post a Comment