mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): typo in make an RPG game (#48816)
Co-authored-by: Rahul <ranag@expediagroup.com> Closes https://github.com/freeCodeCamp/freeCodeCamp/issues/48809
This commit is contained in:
parent
acd74472f8
commit
b4f08d7b96
@ -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)`.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user