Build a String Inspector - Step 3

Tell us what’s happening:

I have done what it is asking me to do and it keeps telling me I should have declared a variable hasFreeCodeCamp.

Your code so far

const fccSentence = "freeCodeCamp is a great place to learn web development.";

console.log("Here are some examples of the includes() method:");


// User Editable Region

const fccSentence = ("learning JavaScript on freeCodeCamp.");
const hasFreeCodeCamp = fccSentence.includes("freeCodeCamp");
console.log(hasFreeCodeCamp);

// User Editable Region

Your browser information:

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

Challenge Information:

Build a String Inspector - Step 3

Your issue is here

the directions didn’t say to create fccSentence again.

You already did that here

If you look at the console, you will see this error message

reset the code and only add the hasFreeCodeCamp variable.

hope that helps