There are two special statements that can be used inside loops: break and continue.
There are two special statements that can be used inside loops: break and continue.
The break command will break the loop and continue executing the code that follows after the loop (if any).
Example
<html> |
Result
The number is: 0 |
The continue command will break the current loop and continue with the next value.
Example
<html> |
Result
The number is: 0 |
To see how HTML and JavaScript work, you can only push the submit button, or you can make your own HTML and JavaScript code.