mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): RPG Step 118 instructions are not clear enough (#52812)
This commit is contained in:
parent
348660f7d0
commit
60fe00c58e
@ -29,10 +29,10 @@ You should use dot notation to access the `innerText` property of `monsterHealth
|
||||
assert.match(goFight.toString(), /monsterHealthText\.innerText/);
|
||||
```
|
||||
|
||||
You should set the `innerText` property of `monsterHealthText` to be the `health` value of the current monster. Remember that you assigned this value to a `monsterHealth` variable.
|
||||
You should set the `innerText` property of `monsterHealthText` to be the `health` value of the current monster. You can get the current monster with `monsters[fighting]` or you can access this value using the `monsterHealth` variable that you previously assigned.
|
||||
|
||||
```js
|
||||
assert.match(goFight.toString(), /monsterHealthText\.innerText\s*=\s*monsterHealth/);
|
||||
assert.match(goFight.toString(), /monsterHealthText\.innerText\s*=\s*monsterHealth|monsterHealthText\.innerText\s*=\s*monsters\[fighting\]\.health/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user