Why did this code give an error?

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


const fCC = "freeCodeCamp"; // Change this line
let fact = "is cool!"; // Change this line
fact = "is awesome!";
console.log(fCC, fact); // Change this line

Your browser information:

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

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

Link to the challenge:

You should change fCC to all uppercase

const FCC

all fcc shuld be uppercase

console.log(FCC,fact);

1 Like