<Below this line, add a link to the EXACT exercise that you are stuck at.>
//You have 500 good strawberries, indexed from 1 to 500
var goodStrawberries = 500;
//For every strawberry whose index is divisible
//by 5, decrement the value of goodStrawberries by 1
for (var i = 1; i <= 500; i++); i < goodStrawberries; i++;
if(i % 5 === 0); {
goodStrawberries–;
}
Oops, try again. Your value for goodStrawberries is incorrect. Check your arithmetic and your loop bounds.
//You have 500 good strawberries, indexed from 1 to 500
var goodStrawberries = 500;
//For every strawberry whose index is divisible
//by 5, decrement the value of goodStrawberries by 1
for (var i = 1; i <= 500; i++); i < goodStrawberries; i++;
if(i % 5 === 0) {
goodStrawberries–;
}
Oops, try again. Your value for goodStrawberries is incorrect. Check your arithmetic and your loop bounds.