Tutorials
THE WORLD'S LARGEST WEB DEVELOPER SITE

Exercise:

Inside the for loop: Set the counter variable (i) to 0. Run the loop as long as i is less than the length of the food array. Increment i by 1.

Syntax hint: i = 0; i < food.length; i++