I'm currently working with an array of "food":
"food": [
{
"id": 11,
"name": "Kabeljaufilet",
"preis": 3.55,
"art": "mit Fisch"
},
{
"id": 12,
"name": "Spaghetti Bolognese",
"preis": 3.85,
"art": "mit Fleisch"
},
{
"id": 13,
"name": "Pizza Salami",
"preis": 3.99,
"art": "mit Fleisch"
},
Now, I am looking to create another Array called "foodplan" where I can manage the foods from the first array by adding or deleting them.
This is my first time working with Arrays that contain Objects from other Arrays. Can you guide me on how to proceed?
Foodplan should have attributes like FoodPerWeek, containing 5 food objects, and WeekNumber Foodplan needs methods for showFood, addFood, changeFood, and deleteFood.