JavaScript Loops "Break" out of a loop. Example#. Breaking out of a while loop#. var i = 0; while(true) { i++; if(i === 42) { break; } } console.log(i);.
確定! 回上一頁