---
id: 5d7deecc8360d21c6826a9b0
title: Part 95
challengeType: 0
isBeta: true
---
## Description
We'll build out the `attack` function now. For the first line in the function, update the text message to say "The [monster name] attacks." but replace "[monster name]" with the actual name of the monster. Remember, you can get the monster name with `monsters[fighting].name`.
## Instructions
## Tests
```yml
tests:
- text: See description above for instructions.
testString: fightDragon(), attack(), assert(text.innerText === 'The dragon attacks.');
```
## 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.