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

Fixed bugs referenced in issue #47660
pull/47670/head
Utkersh Rajvenshi 2022-09-30 00:27:21 +05:30 committed by GitHub
parent 17d99f7f39
commit 2426222f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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*-=/);

View File

@ -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/);