--- id: 5d65f6392012114c7d7c57ed title: Part 20 challengeType: 0 dashedName: part-20 --- # --description-- When a player clicks the 'Go to store' button, the buttons and text in the game should change. Remove the code inside the `goStore` function. Add a new line of code inside the function that updates the text of `button1` so that it says "Buy 10 health (10 gold)". For example, this code updates the text of `button` to say "Click Me": `button.innerText = "Click Me";`. # --hints-- See description above for instructions. ```js assert( (() => { goStore(); return button1.innerText === 'Buy 10 health (10 gold)'; })() ); ``` # --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 ```