Tell us what’s happening:
Describe your issue in detail here.
Your code so far
const FCC = "freeCodeCamp"; // Change this line
const 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; rv:105.0) Gecko/20100101 Firefox/105.0
Challenge: Basic JavaScript - Declare a Read-Only Variable with the const Keyword
I think you should try to understand when to use constant and when to use let.
Mainly understand that const is a keyword that indicates to the computer (or JavaScript engine in this case) that the variable name to follow it is to be constant.
Being constant means that it will not change value once a value has been given or stored in it.
Now looking at the code again. Which variables do not change value after assignment? And which do?
The ones that will not change value, should be const. The ones that change should be defined with let.