Build a Recipe Tracker - Step 3

Tell us what’s happening:

Receiving an error on Step 3, but the code works in my IDE (VS Code).

Your code so far

const recipes = [];

const recipe1 = {
  name: 'Spaghetti Carbonara',
  ingredients: ['spaghetti', 'Parmesan cheese', 'pancetta', 'black pepper'],
  ratings: [4, 5, 4, 5],
};

// User Editable Region

recipe1.cookingTime = 22;
recipe1.totalIngredients = null;
recipe1.difficultyLevel = "";
recipe1.averageRating = null;

// User Editable Region

};

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a Recipe Tracker - Step 3

Welcome to the forum @taylorpatterson-sc

SyntaxError: unknown: Unexpected token (18:0)

  16 | // User Editable Region
  17 |
> 18 | };
     | ^

Looks like you have extra code on line 18.

Happy coding

1 Like

I’m embarrassed about how long I was troubleshooting - thank you.

1 Like

Don’t worry about it. We’ve all been there. :smiley: