ajpenalosa
12/2/2017 - 5:48 AM

for loop

The for statement creates a loop that consists of three optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement (usually a block statement) to be executed in the loop.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for

for ([initialization]; [condition]; [final-expression]) statement

for (var i = 0; i < coolPeople.length; i++) {
  console.log(coolPeople[i]);
}