could you help me to complete this question please:
this reply is not clear for me
“You should assign the value of the name property of recipe1 to your recipe1name variable”.
Your code so far
const recipes = [];
const recipe1 = {
name: 'Spaghetti Carbonara',
ingredients: ['spaghetti', 'Parmesan cheese', 'pancetta', 'black pepper'],
cookingTime: 22,
totalIngredients: null,
difficultyLevel: '',
ratings: [4, 5, 4, 5],
averageRating: null,
};
const recipe2 = {
name: 'Chicken Curry',
ingredients: ['chicken breast', 'coconut milk', 'curry powder', 'onion', 'garlic'],
cookingTime: 42,
totalIngredients: null,
difficultyLevel: '',
ratings: [4, 5, 5, 5],
averageRating: null,
// User Editable Region
};
const recipe1Name = {
name : recipe1,
};
console.log(recipe1Name);
const recipe2Name = {
name: recipe2,
};
console.log(recipe2Name);
// 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/138.0.0.0 Safari/537.36
Challenge Information:
Build a Recipe Tracker - Step 5
https://www.freecodecamp.org/learn/full-stack-developer/workshop-recipe-tracker/step-5