Tell us what’s happening:
Describe your issue in detail here.
Im stuck !! help !! where is the problem coming ???
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/99.0.4844.74 Safari/537.36 Edg/99.0.1150.46
Challenge: Declare a Read-Only Variable with the const Keyword
Link to the challenge:
The failing tests are trying to tell you what the problem is.
You should change fCC
to all uppercase.
and
console.log
should be changed to print the FCC
and fact
variables.
That was in reference to this instruction:
Also, rename variables declared with const
to conform to common practices.
based on the instruction:
Note: It is common for developers to use uppercase variable identifiers for immutable values and lowercase or camelCase for mutable values (objects and arrays).
FCC is a constant primitive so it is an immutable value so it should be uppercase.
4 Likes