--- id: 5d6f82da7c812010bf3327d8 title: Part 63 challengeType: 0 isHidden: true --- ## Description
Now update the `innerText` property of `goldText` and `text`. `text` should equal "You now have a new weapon.".
## Instructions
## Tests
```yml tests: - text: See description above for instructions. # testString: assert(buyWeapon.toString().match(/goldText\.innerText\s*\=\s*gold\;/) && buyWeapon.toString().match(/text\.innerText\s*\=\s*[\'\"\`]You now have a new weapon\.?[\'\"\`]\;?/)); # testString: assert((() => { buyWeapon(); return goldText.innerText === '20' && text.innerText === 'You now have a new weapon.' })()); testString: buyWeapon(), assert(goldText.innerText === '20' && text.innerText === 'You now have a new weapon.'); ```
## Challenge Seed
```html ```
### Before Test
```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 Test
```html ```
## Solution
```html ```