fix(curriculum): fix learn JS by RPG step 129 wrong hint (#52851)

This commit is contained in:
Duong The Pham
2024-01-01 03:56:01 +07:00
committed by GitHub
parent 52b419bc8a
commit 99f8567aa5

View File

@@ -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*\)/);