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

Tell us what’s happening:

What is going on here it sounds right but it’s not passing !
Any help would be great

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

  monsterHealth -= weapons[currentWeapon].power + math.floor(math.random() * xp) + 1;}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/119.0.6045.169 Mobile/15E148 Safari/604.1

Challenge Information:

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

Hey, for one you need to remove the curly brace at the end, also math has to be a capitol Math

2 Likes

The curly bracket is the close of the function,
Thanks for help it pass

1 Like