Backpack Mistake Problem

var Hunger = otherBackpack.food
When I am using this code, it is asking me to remove the 2nd variable declaration outside the for loop,even there is nothing outside the for loop. Can I get some help?

3 posts were merged into an existing topic: Backpack Mistake explainer