+ 1
Composing a loop
how do you compose a loop for javascript?
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;
}
+ 1
Thank you so much!!
+ 1
You're welcome!