I am not getting feedback when i submit code so not sure if i am on the right path.
const locations = [
{
name: "town square",
"button text": ["Go to store", "Go to cave", "Fight dragon"],
"button functions": [goStore, goCave, fightDragon],
text.innerText = "You are in the town square. You see a sign that says \"Store\".";
}
];
the question is
Add one final property to the object named text . Give this property the same string value as the one assigned to text.innerText in the goTown function.
i tried this
const locations = [
{
name: "town square",
"button text": ["Go to store", "Go to cave", "Fight dragon"],
"button functions": [goStore, goCave, fightDragon],
"button text": ["You are in the town square. You see a sign that says \"Store\"]
}
];```