Build a Recipe Tracker - Step 7

Tell us what’s happening:

I am stuck on the last step. Not sure what is being asked of me but any guidence would be greatly appreciated

Your code so far

const recipes = [];

const recipe1 = {
  name: "Spaghetti Carbonara",
  ingredients: ["spaghetti", "Parmesan cheese", "pancetta", "black pepper"],
  cookingTime: 22,
  totalIngredients: null,
  difficultyLevel: ""
};

const recipe2 = {
  name: "Chicken Curry",
  ingredients: ["chicken breast", "coconut milk", "curry powder", "onion", "garlic"],
  cookingTime: 42,
  totalIngredients: null,
  difficultyLevel: ""
};

const recipe3 = {
  name: "Vegetable Stir Fry",
  ingredients: ["broccoli", "carrot", "bell pepper"],
  cookingTime: 15,
  totalIngredients: null,
  difficultyLevel: ""
};


// User Editable Region

// let recipe1Name = recipe1.name;
// console.log(recipe1Name);
recipes.push(recipe1.name, recipe2.cookingTime, recipe3.ingredients );

// let recipe2CookingTime = recipe2.cookingTime;
// console.log(recipe2CookingTime);
// recipes.push(recipe2CookingTime);

// let recipe3Ingredients = recipe3.ingredients;
// console.log(recipe3Ingredients);
// recipes.push(...recipe3Ingredients);
console.log(recipes)





// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build a Recipe Tracker - Step 7

I figured it out! sorry for the pre-fire

1 Like

Persistence like this will serve you well.

1 Like