Iteration involves the repetition of a block of code several times until a desired task is complete.
In JavaScript, there are three main tools that can be used for iterations:
The for loop
is the best tool to use when the number of repetitions is known. If an operation needs to be performed on every element
in an array of length N, it becomes clear that N operations are needed and the for loop
can be used to accomplish this