foodArray.forEach((food) => { console.log(food); food.ingredients.forEach((ingredient) => { console.log(ingredient); }); });