“declare a read-only variable with the const keyword”
this step of the course is bugged, it doesn’t work even with the correct code
well, maybe my code is wrong so I went to get a hint and the hint for this exercise is wrong, it refers to a different exercise which is not at all the one that’s there.
Hi, thank you for the response. I did change the console.log
Here is my code:
// 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);
Here is the error message: "FCC should be a constant variable declared with const."
Hi, I didn’t write just “Cool”, it was “is Cool”, but anyway, I changed to “is cool” and it still doesn’t work:
// 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);
and the same error message: "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.