fix(curriculum): typos in create RPG game in new JavaScript (#47664)

Fixed bugs referenced in issue #47660
This commit is contained in:
Utkersh Rajvenshi
2022-09-29 18:57:21 +00:00
committed by GitHub
parent 17d99f7f39
commit 2426222f26
2 changed files with 2 additions and 2 deletions
@@ -11,7 +11,7 @@ Set `monsterHealth` to `monsterHealth` minus the power of the player's current w
# --hints--
You should use compound assignment modify the `monsterHealth` variable.
You should use compound assignment to modify the `monsterHealth` variable.
```js
assert.match(attack.toString(), /monsterHealth\s*-=/);
@@ -11,7 +11,7 @@ After the `lose` function, create a function called `winGame`. Inside the `winGa
# --hints--
You should use the `function` keyword to delcare `winGame`.
You should use the `function` keyword to declare `winGame`.
```js
assert.match(code, /function\s+winGame/);