+ 5
Someone please help me understand this loop thingš¦
3 Answers
+ 15
count out loud from 1 to 10
done?
...
...
...
...
...
...
you just did this (in JavaScript for example)
for(var num = 1; num <= 10; num++){
shout(num);
}
now understand that many operations done by a computer program are repetitive and by employing the power of looping we can tackle them on with minimal lines of code.
+ 6
Basically, looping means doing things over and over again until you get into a certain condition where you want to stop the iteration.
+ 4
thanks I got it now