From b84fcc3becfcb7979a59c5e4d4c6aa107e2ef071 Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 19 Jun 2024 12:27:32 -0400 Subject: [PATCH] fix(curriculum): remind users about healthText rpg step 76 (#55210) --- .../62a8c465fa7b0c252f4a8f0c.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c465fa7b0c252f4a8f0c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c465fa7b0c252f4a8f0c.md index 83b34def3df..ed1f2970930 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c465fa7b0c252f4a8f0c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c465fa7b0c252f4a8f0c.md @@ -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.