--- id: 5d68ca40e0696bdec46938ed title: Part 46 challengeType: 0 dashedName: part-46 --- # --description-- Add a third object in the `locations` array with the same properties as the other two objects. Set `name` to "cave". Set the elements in the `"button text"` array to \["Fight slime", "Fight fanged beast", and "Go to town square". Set te elements in the `"button functions"` array to be "fightSlime", "fightBeast", and "goTown". Set the value of the `text` property to "You enter the cave. You see some monsters.". # --hints-- See description above for instructions. ```js assert.deepStrictEqual(locations[2], { 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.' }); ``` # --seed-- ## --before-user-code-- ```html RPG - Dragon Repeller
XP: 0 Health: 100 Gold: 50
Monster Name: Health:
Welcome to Dragon Repeller. You must defeat the dragon that is preventing people from leaving the town. You are in the town square. Where do you want to go? Use the buttons above.
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```