4.1 What Are Loops?
What Are They?
Loops can execute a block of code a number of times.
Loops are handy. If you want to run the same code over and over again, you can do so with loops.
Different Kinds of Loops
for- loops through a block of code a number of times.
for/in- loops through the properties of an object.
for/of- loops through the values of an iterable object
while- loops through a block of code while a specified condition is true.
4.2 For Loop