Learn Basic JavaScript by Building a Role Playing Game - Step 59

Tell us what’s happening:

Describe your issue in detail here.
I need help with this one

Your code so far

const locations = [
{
name: “town square”,
“button text”: [“Go to store”, “Go to cave”, “Fight dragon”],
“button functions”: [goStore, goCave, fightDragon],
text: “You are in the town square. You see a sign that says "Store".”

}

{
name: “store”,
text: “You enter the store.”
}
];

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Hi @camaguncoso

The second object in your array needs the same keys as the first object.
Make sure to separate each item will a comma.

Happy coding

Here is the code I came up with and it does not go through when I click check code

{
    name: "store",
    "button text": ["Buy 10 health (10 gold)", "Buy weapon (30 gold)", "Go to town square"],
    "button functions": [buyHealth, buyWeapon, goTown],
    text: "You enter the store."
  }

can you please provide the link to the step?