Build a String Inspector - Step 3

Tell us what’s happening:

have restarted the lesson over twice and yet it will not allow me to declare hasFreeCodeCamp as a variable ive used the “let” and
“const” inputs yet its still saying im not declaring it as a variable to work with

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


let 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/145.0.0.0 Safari/537.36

Challenge Information:

Build a String Inspector - Step 3

You need to assign a value to the variable as instructed. Please add this. If you are having problems still, post your updated code here. So far you have declared a let variable with no value.

1 Like

Additionally there is not semicolon

This is not really a problem though, JS automatically adds it (https://www.freecodecamp.org/learn/javascript-v9/lecture-understanding-code-clarity/what-is-the-role-of-semicolons)

It’s good practice to add in the semi-colon. They are automatically added but best to do them yourself as JS could add them in the wrong place. The semi-colon is not the issue here.

See my post above that you need to address.