From 99f8567aa55fd2c2485d31a0b28634f62104f50e Mon Sep 17 00:00:00 2001 From: Duong The Pham Date: Mon, 1 Jan 2024 03:56:01 +0700 Subject: [PATCH] fix(curriculum): fix learn JS by RPG step 129 wrong hint (#52851) --- .../62a8eefe2e68b66ac563816b.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eefe2e68b66ac563816b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eefe2e68b66ac563816b.md index 7fb7774dd2f..15378305df3 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eefe2e68b66ac563816b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eefe2e68b66ac563816b.md @@ -25,7 +25,7 @@ You should use `Math.floor()` to round the result of the monster's level times ` assert.match(defeatMonster.toString(), /Math\.floor\(\s*monsters\[fighting\]\.level\s*\*\s*6\.7\s*\)/); ``` -You should add the result of `Math.floor(gold + monsters[fighting].level * 6.7)` to `gold`. +You should add the result of `Math.floor(monsters[fighting].level * 6.7)` to `gold`. ```js assert.match(defeatMonster.toString(), /gold\s*\+=\s*Math\.floor\(\s*monsters\[fighting\]\.level\s*\*\s*6\.7\s*\)/);