mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-28 23:01:57 -04:00
fix(curriculum): fix learn JS by RPG step 129 wrong hint (#52851)
This commit is contained in:
@@ -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*\)/);
|
||||
|
||||
Reference in New Issue
Block a user