I’m stuck on step 5 in Build a recipe tracker. I’ve fiddled with an attempt to do part one of the step, but I’m completely lost. I’ve Googled and went back over the course material, but apparently I’m not grasping it.
Sorry I meant I couldn’t find the right lesson until you pointed it out to me. I’m still struggling. Am I right in thinking the . and the [ ] apply to console.log? What I can’t figure out is this.
Access the name properties of both recipe1 and recipe2, and assign them to the variables recipe1Name and recipe2Name, respectively.
If you’ve forgotten how to access the properties of an object, you can always review that topic by googling it. For eg you can read an article like this one
I’ve googled and ducked. It still is coming down to this. You should assign the value of the name property of recipe1 to your recipe1name variable. This is my latest attempt.
I see it now. Let! Thanks for your help. Forgot to hit reply. Just as well added in the rest of step 5 and still can’t pass. I get: You should create a recipe1Name variable.
let recipe1Name = recipe1.name;
console.log(recipe1Name);
let recipe2Name = recipe2.name;
console.log(recipe2Name);
let recipe1CookingTime = recipe1.cookingTime;
console.log(cookingTime);
let recipe2CookingTimeookingTime = recipe2.cookingTime;
console.log(cookingTime);