I cannot find the error, I think I’m missing something and i’ve looked at videos and stuff online and it’s the same thing. Please help me figure this out.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const weapons = [
{
name:"stick",
power: 5
},
{
name:"dagger",
power: 30
},
{
name:"claw hammer",
power: 50
},
{
name:"sword",
power: 100
},
];
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Challenge Information:
Learn Basic JavaScript by Building a Role Playing Game - Step 81
The code you have shared works on my end. Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.
I just deactivated my extensions, reloaded a couple times. Still didn’t work. I’m also on chrome and it’s just not working with me. I’ll try maybe a different browser.