These exercises introduce you to JavaScript loops. Loops are used when you need to repeat a task multiple times until a certain condition is met. A good example of this is when you set a timer on your watch. The watch decrements the displayed value by 1 second at each iteration. his continues until the value reaches 0 seconds. Then, the timer is stopped.
There are different types of loops in JavaScript. They are all very similar, but mostly differ by how they define the conditions under which the loop terminates.
  1. for loop I - creating JavaScript loops
  2. for loop II - looping through an array
  3. for loop III - abort running loop
  4. while loop