Roll Playing Game step 124 fails.
None of the searched for solutions work in my code.
I got to the point where I just did a copy paste of good code which did not work in mine.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
monsterHealth -= weapons[currentWeaponIndex].power + Math.floor(Math.random() * xp) + 1;
// User Editable Region
Oh, I remember, I was asked to use the magical browser which was designed for freeCodeCamp JavaScript step124 just for Chrome! I can’t even cut/paste to Firefox. So, when the Wizard appears and casts a spell to unfreeze step-124 I will have finished the course, if it gets zapped.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
Challenge Information:
Learn Basic JavaScript by Building a Role Playing Game - Step 124
Your solution works from my end. Please try one of the following steps to move forward.
Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.
or - Try the step in incognito or private mode.
or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.
or - Ensure your browser is up-to-date or try a different browser.