Learn Basic JavaScript by Building a Role Playing Game - Step 129

Tell us what’s happening:

Can someone please tell me what I am missing in my code. Step 129 instruction say:" In your defeatMonster function, set gold equal to gold plus the monster’s level times 6.7 . You can get the monster’s level with the level property."

Your help will highly be appreciated

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

function defeatMonster() {
  gold += monsters[fighting].level + Math.floor() * 6.7;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 129

Math.floor needs to be around the numbers you want to round dow

Hey ilenia,
Thank you so much for the hint. after many triers and failures, I final got it right. Thanks once again for your kind gesture. Meant a lot to my journey.