`FCC` should be a constant variable declared with `const`

This is my code:

// Only change code below this line

const FCC = "FREE_CODE_CAMP";

let fact = "is cool!";

// Only change code above this

fact = "is cool!";

console.log(FCC, fact);

Showing this error when I “Run the Test” in E6 Javascript:

FCC should be a constant variable declared with const .

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

FCC is a const, yes - but did you change the string in that const? The error is indicating something off…but in this case, maybe not the right thing.

Hello. Thanks for your help.

Yes, that may be the answer: to display FCC as “FCC” if that’s what you are saying

Hi ,

I resolved my problem

FCC had to be initialized

I could not conceptualize how to initialize but finally got it.

Correct code below:

// Only change code below this line
const FCC = "freeCodeCamp";
let fact = "is cool!";
// Only change code above this
fact = "is cool!";
console.log(FCC, fact)
2 Likes

thanks for the solution. I had the same code but for some stupid reason my code wasn’t working.

Same here.
And i have tried every possible way but still not working

In the future, please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.