for Loops

3 Parts to a for loop: before the loop  var i = 0 , the condition for executing the loop  i < myAnimals.length , and what to do when the loop finishes i++ .

The loop itself is the code block passed between { }. This will be executed for as long as the condition is true.

Leave a Reply

Your email address will not be published. Required fields are marked *