+ 5

Someone please help me understand this loop thingšŸ˜¦

12th Feb 2018, 11:02 PM
Ekow Stine
Ekow Stine - avatar
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.
12th Feb 2018, 11:10 PM
Burey
Burey - avatar
+ 6
Basically, looping means doing things over and over again until you get into a certain condition where you want to stop the iteration.
13th Feb 2018, 12:39 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 4
thanks I got it now
13th Feb 2018, 10:41 AM
Ekow Stine
Ekow Stine - avatar