- continue
Continue to next in while loop in JavaScript
examples/js/continue_while.js
"use strict"; var n = 1; while (n < 7) { n++; if (n === 5) { continue; } console.log(n); }
2 3 4 5 6 7
"use strict"; var n = 1; while (n < 7) { n++; if (n === 5) { continue; } console.log(n); }
2 3 4 5 6 7