Basic JavaScript - Declare a Read-Only Variable with the const Keyword

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

** * The string assigned to FCC should not be changed. **

This statemen is showing tick mark.

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/111.0.0.0 Safari/537.36

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

Link to the challenge:

If you reset this lesson you will see that the original line is:

var fCC = "freeCodeCamp";

You changed the lower case “f” in the string “freeCodeCamp” to a capital “F”. You don’t want to do that. That’s what the error is telling you.

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