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" ",
},
];
You don’t include the error you are getting, but I do see one problem with your code.
Have you learned to escape quote marks in a string? Without escaping the quotes within the string, the compiler thinks you are ending the current string and starting a new one. Your revised line:
text: "You are in the town square. You see a sign that says \"Store\" ",
1 Like
hey thanks for the solution
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.