Different Kinds of Loops

For Loop

The for loop allows you to loop through a block of code a number of times you specify. The code is shown below.
for (statement 1; statement 2; statement 3) { code block to be executed }

For/In Loop

The For/In Loop allows you to loop through properties of an object.

While Loop

In the While loop the loops runs until a certain number is met

The Do/While Loop

The Do While loop will execute the code block once, before checking if the condition is true, then it will repeat the loop as long as the condition is true.