Declare a Read-Only Variable with the const Keyword error 2021

Tell us what’s happening:
Error message when I try to submit code.

// running tests You should change
fCC to all uppercase.

FCC should be a constant variable declared with const

console.log should be changed to print the

FCC and fact variables. // tests completed // console output

Your code so far


// Only change code below this line
const FCC = "freeCodeCamp";
let fact = "is cool!";
// Only change code above this line

fact = "is awesome!";
console.log(fCC, fact);

I believe I’ve done everything correct so I don’t understand why its incorrect

Your browser information:

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

Challenge: Declare a Read-Only Variable with the const Keyword

Link to the challenge:

You also need to change this line. There is a fix submitted to change the comments in this challenge.

2 Likes

I am having the same issue. Could you please try to explain the solution better?

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.