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++

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com