Loops in Javascript
Picking Strawberries

For a day's pay at your part time job in the strawberry fields, you must pick 500 strawberries. To apply an action to every strawberry without writing 500 commands, you will learn to use a for loop!


Let's start simple. Create a variable called strawberriesToPick and store the value 500 inside.

Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

Are you familiar with the format for declaring and initializing a variable? var variableName = value;