Guest practice: this set is not saved and does not count.
What does this log?
let i = 5; for (i = 0; i < 10; i++) { // some code } console.log(i);
A do...while loop always runs its body at least once.
do...while
for (let row = 1; row <= 2; row++) { for (let col = 1; col <= 3; col++) { if (col === 2) break; console.log(row + "," + col); } }
1,1
1,2
1,3
2,1
A break inside a switch that sits inside a loop ends the loop.
break
switch
In a for loop, the change step (like i++) still runs after a continue.
for
i++
continue
Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.
Check my answers