0
Is there a simpler way to understand while loops?
3 Antworten
+ 1
while loop is a control statement: that says provided the conditions u set are true do certain instructions. eg var a =2;
while (a<19){ document.write(a);
a++;} this will output the current value of a as far a is less than 19 if a becomes 19 it won't work.
+ 1
Thanks a lot
0
you are welcome