fix(curriculum): remind users about healthText rpg step 76 (#55210)

This commit is contained in:
Anna
2024-06-19 12:27:32 -04:00
committed by GitHub
parent 97dd5f9a7f
commit b84fcc3bec

View File

@@ -7,18 +7,10 @@ dashedName: step-76
# --description--
Now that you are updating the `gold` and `health` variables, you need to display those new values on the game screen.
Now that you are updating the `gold` and `health` variables, you need to display those new values on the game screen. You have retrieved the `healthText` and `goldText` elements in a prior step.
After your assignment lines, assign the `innerText` property of `goldText` to be the variable `gold`. Use the same pattern to update `healthText` with the `health` variable.
Here is an example:
```js
let value = 100;
const total = document.querySelector('#total');
total.innerText = value;
```
You can test this by clicking your `"Go to store"` button, followed by your `"Buy Health"` button.
**Note:** Your answer should only be two lines of code.