break while js code example
Example: javascript break out of loop
//break out of for loop
for (i = 0; i < 10; i++) {
if (i === 3) { break; }
}
//break out of for loop
for (i = 0; i < 10; i++) {
if (i === 3) { break; }
}