+ 1

Composing a loop

how do you compose a loop for javascript?

11th Apr 2018, 6:16 PM
asia riley
asia riley - avatar
3 Respuestas
+ 2
I'm actually really shocked that the JS course here on SoloLearn doesn't cover loops. Here is basic FOR loop: for(int i = 0; i < 5; ++i){ document.write(i); } Here is basic WHILE loop: int i = 0; while(i < 5){ document.write(i); ++i; }
11th Apr 2018, 6:23 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
Thank you so much!!
11th Apr 2018, 7:33 PM
asia riley
asia riley - avatar
+ 1
You're welcome!
11th Apr 2018, 7:37 PM
Fata1 Err0r
Fata1 Err0r - avatar