UChicago CMSC 23320 - The Best Commit Messages of 2024
Break
1. The break statement "jumps out" of a loop and continues executing the code after the loop.
Once it reaches 6, it will break out of the loop.
break
for (i = 0; i <= 10; i++) {
if (i == 6) {
break;
}
document.write(i + "<br />");
}