fix(curriculum): typos in create RPG game in new JavaScript (#47664)
Fixed bugs referenced in issue #47660pull/47670/head
parent
17d99f7f39
commit
2426222f26
|
@ -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/);
|
||||
|
|
Loading…
Reference in New Issue