Hello! So I am pretty sure my code is correct for this step, but when I do control + return, or click the button “Check Your Code” nothing happens. I have noticed through this whole project if my code is not correct and I click “Check Your Code” (or do control + return) nothing happens. It only changes if the answer is correct and then let’s me move on, which is weird but fine. However, I am pretty certain I am correct here. I couldn’t find anything on the forums about this step and after googling for a bit I came across this video where someone does exactly as I have done here, submits it, and freeCodeCamp accepts it as the correct answer. However, maybe I am just not seeing some small detail that’s throwing everything off?
Am I completely incorrect and my code is not even remotely close to the right answer? Because it appears to be exactly correct, I have checked many times. I thought maybe AdBlockPlus was throwing things off as fCC mentioned that may cause issues, and I disabled it on the entire website. Still no change though. Anyway here’s my code.
const weapons = [
{
name: "stick",
power: 5
},
{
name: "dagger",
power: 30
},
{
name: "claw hammer",
power: 50
},
{
name: "sword"
power: 100
}
];
here’s the video I found of someone doing exactly what I did and submitted it and fCC accepted it as correct. https://www.youtube.com/watch?v=lJWIb_UIHvM
So I must be making some mistake though right? My code is incorrect somehow but I’m just not seeing it. Can anyone point me in the right direction regarding what I am doing wrong?
Notably, maybe, there’s a squiggly red line appearing underneath power for sword indicating that it is spelled incorrectly even though it is not.