Learn

Sometimes you do know how many times you’ll be looping, however, and when that’s the case, you’ll want to use a for loop.

Instructions

Take a look at the example for loop in the editor. Can you guess what it does? Click Run to see it in action.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?