--- id: 5d71cab4f27e5122af9f1178 title: Part 85 challengeType: 0 dashedName: part-85 --- # --description-- Now we'll start working on fighting monsters. Organize your code by moving the `fightDragon` function to the bottom of the code near the other fight functions. Below where the `weapons` array is defined, define a `monsters` array. Set the contents of the `monsters` array to: `{ name: "slime", level: 2, health: 15 }, {name: "fanged beast", level: 8, health: 60 }, { name: "dragon", level: 20, health: 300 }`. Space out the code similar to the `weapons` array so that it is easier to read. # --hints-- See description above for instructions. ```js assert.deepStrictEqual(monsters, [ { name: 'slime', level: 2, health: 15 }, { name: 'fanged beast', level: 8, health: 60 }, { name: 'dragon', level: 20, health: 300 } ]); ``` # --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 ```