forEach In a forEach method, we pass each food type within that iteration into the callback. A for loop needs you to access the array using a temporary i variable.
foodArray.forEach((food) => {
console.log(food);
food.ingredients.forEach((ingredient) => {
console.log(ingredient);
});
});