fix(curriculum): RPG Step 118 instructions are not clear enough (#52812)

This commit is contained in:
Juan Carrillo 2023-12-29 18:52:39 -06:00 committed by GitHub
parent 348660f7d0
commit 60fe00c58e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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--