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!

Code Editor

If we can make a for loop run forwards through an array, can we make it run backwards through it? Of course!

We can make out loop run backwards by modifying the start, stop, and iterator conditions.

To do this, we'll need to edit the code between the for loop's parentheses:

  1. The start condition should set i to the length of the array.

  2. The stop condition should end when i is 0.

  3. The iterator should subtract 1 each time, which is done with i--.

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