--- id: 5d7f43947c4263f469c36b1b title: Part 109 challengeType: 0 dashedName: part-109 --- # --description-- Add a new object in the `locations` array with all the same properties as the other objects in the array. Set `name` to "kill monster". Set `"button text"` to `["Go to town square", "Go to town square", "Go to town square"]`. Set `"button functions"` to `[goTown, goTown, goTown]`. And set `text` to "The monster screams Arg! as it dies. You gain experience points and find gold.". # --hints-- See description above for instructions. ```js assert.deepStrictEqual(locations[4], { name: 'kill monster', 'button text': [ 'Go to town square', 'Go to town square', 'Go to town square' ], 'button functions': [goTown, goTown, goTown], text: 'The monster screams Arg! as it dies. You gain experience points and find gold.' }); ``` # --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 ```