Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Learn

One of a computer's greatest abilities is to repeat a task over and over so we don't have to. Loops let us tell the computer to loop over a block of code so that we don't have to write out the same process over and over.

Loops are especially helpful when we have an array where we'd like to do something to each item in the array, like logging each item to the console.

There are two kinds of loops we will learn in this lesson:

  1. for loops, which let us loop a block of code a known amount of times.

  2. while loops, which let us loop a block of code an unkown amount of times.

Instructions

Click 'Next' to continue.

Report a Bug
If you see a bug or any other issue with this page, please report it here.