--- id: 5dbac2b06ef5fe3a704f8492 title: Part 123 challengeType: 0 dashedName: part-123 --- # --description-- Now return `hit` from the `getMonsterAttackValue` function. The return value of this function is used in the `attack` function. Here is an example of a function that returns a value: ```js function plusThree(num) { let numPlusThree = num + 3; return numPlusThree; } const answer = plusThree(5); // 8 ``` # --hints-- See description above for instructions. ```js assert( getMonsterAttackValue.toString().replace(/\s/g, '').includes('returnhit') ); ``` # --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 ```