Lesson

Learn Javascript 2017, Loops, for loops, Codecademy

Lesson Summary

In this lesson we go over the javascript for loop. The for loop allows us to iterate through a list a number of times while a specified condition is true. The for loop takes a start condition, and a stop condition. In the start condition we initialize a variable (usually i) which will keep the loop going as long as the stop condition is true, once the stop condition evaluates as false, then the loop ends.

Share: