I am not able to complete this step. Will anyone of you be able to help me complete this step?
Step 75
Now that you are updating the gold and health variables, you need to display those new values on the game screen.
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:
```
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.
My code:
function buyHealth() {
gold -= 10;
health += 10;
document.querySelector("#gold").innerText = gold;
document.querySelector("#health").innerText = health;
}