Break - logaegae/project_study GitHub Wiki

Break

The break statement breaks the loop and continues executing the code after the loop (if any):

#Continue

The continue statement breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.

Ex>
for (i = 0; i < 10; i++) {
    if (i === 3) { continue; }
    text += "The number is " + i + "<br>";
}


Then, return 0, 1, 2, 4, 5, 6, 7, 8, 9