Learn JavaScript by building a Roleplay game - step 70

Hello! Im stuck on step 70, as I keep getting the error message: “SyntaxError: unknown: Unexpected token, expected “,” (36:2) 34 | “button text”: [“Fight slime”, “Fight fanged beast”, “Go to town square”], 35 | “button functions”: [fightSlime, fightBeast, goTown] > 36 | text: “You enter the cave. You see some monsters.” | ^ 37 | }, 38 | ]; 39 |”.
To my understanding, this means there is a comma missing from my code in line 36. Am I understanding this correctly? If so, where should this comma go? I’ve looked at this for so long I could use some outside eyes at this point. Here is my code:

{
  name: "cave",
  "button text": ["Fight slime", "Fight fanged beast", "Go to town square"],
  "button functions": [fightSlime, fightBeast, goTown]
  text: "You enter the cave. You see some monsters.",
}

I apologize if I am not posting this correctly. Thanks for your help.

Sorry! You are missing comma in the last of your “button text” arry .
@ejames465

Is it after the “Go to town square”? When I add this, the code still does not clear.

No. You need comma after last bracket of button functionsarry

[Fight slime, Fight fanged beast, goTown]

@ejames465

I dont know how I missed that. Thanks for your help!

Your welcome. Code carefully, happy Coding!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.