Lesson

Count Backwards With a For Loop, freeCodeCamp Basic Javascript

Lesson Summary

In this challenge we use a javascript for loop to count backwards. In this lesson we utilize a for loop to create an array which starts at 9 and counts back to 1 by 2, printing only odd numbers. We decrement each time we loop by 2.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: