From 60fe00c58e50c3358b0774136a6a5cb229fe4322 Mon Sep 17 00:00:00 2001 From: Juan Carrillo Date: Fri, 29 Dec 2023 18:52:39 -0600 Subject: [PATCH] fix(curriculum): RPG Step 118 instructions are not clear enough (#52812) --- .../62a8e271f8e3d1541f9624ad.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e271f8e3d1541f9624ad.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e271f8e3d1541f9624ad.md index cfdacc1f7e5..0e486d15823 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e271f8e3d1541f9624ad.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e271f8e3d1541f9624ad.md @@ -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--