---
id: 5dbac2b06ef5fe3a704f8492
title: Part 123
challengeType: 0
isHidden: true
---
## 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
```
## Instructions
## Tests
```yml
tests:
- text: See description above for instructions.
testString: assert(getMonsterAttackValue.toString().replace(/\s/g, '').includes('returnhit'));
```
## Challenge Seed
```html
```
### Before Test
```html
RPG - Dragon Repeller
XP: 0Health: 100Gold: 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.