exit from for loop in javascript 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; }
}