+ 1

js

for (i = 0; i <= 10; i++) { if (i == 5) { continue; } document.write(i + "<br />"); } how to skip cont and no 5?

18th May 2019, 4:56 PM
Mewan Athukorala
Mewan Athukorala - avatar
3 Respostas
+ 10
If I ==5 I +=i
1st Jun 2020, 12:20 PM
Coder
Coder - avatar
+ 3
https://www.sololearn.com/learn/JavaScript/1143/ why making three consecutive posts posting examples in js course here? if this is for badge or what, please don't in the bottom left of each lesson, there is Comment. check people's explanations there.
18th May 2019, 5:18 PM
Gordon
Gordon - avatar
+ 1
The continue statement goes back to the start of the loop, not executing the writing. Please, stop.
18th May 2019, 5:00 PM
Airree
Airree - avatar