mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 12:13:31 +08:00
fix(curriculum): typos in create RPG game in new JavaScript (#47664)
Fixed bugs referenced in issue #47660
This commit is contained in:
+1
-1
@@ -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*-=/);
|
||||
|
||||
+1
-1
@@ -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/);
|
||||
|
||||
Reference in New Issue
Block a user