From b4f08d7b965869e24706369e8cc032f5ac007729 Mon Sep 17 00:00:00 2001 From: Rahul Nag <26169430+KingChampion36@users.noreply.github.com> Date: Thu, 22 Dec 2022 10:58:56 +0530 Subject: [PATCH] fix(curriculum): typo in make an RPG game (#48816) Co-authored-by: Rahul Closes https://github.com/freeCodeCamp/freeCodeCamp/issues/48809 --- .../62a3cfc8328d3351b95d4f61.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a3cfc8328d3351b95d4f61.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a3cfc8328d3351b95d4f61.md index 490ea3e8e2f..2283852c280 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a3cfc8328d3351b95d4f61.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a3cfc8328d3351b95d4f61.md @@ -14,7 +14,7 @@ const info = document.querySelector("#info"); info.innerText = "Hello World"; ``` -This code would change the element assigned to the `div` variable to have the text `Hello World`. +This code would change the element assigned to the `info` variable to have the text `Hello World`. When a player clicks your `Go to store` button, you want to change the buttons and text. Remove the code inside the `goStore` function and add a line that updates the text of `button1` to say `Buy 10 health (10 gold)`.