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

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

Your code so far

const fCC = "freeCodeCamp"; // Change this line
const FCC = fCC;
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/114.0.0.0 Safari/537.36 OPR/100.0.0.0

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

Link to the challenge:

Welcome to our community!

Where did you find the instruction for this code line?
You have to change the first line, and it is there that you change the first letter of the variable name to the capital one.

Welcome to the community.
It appears that the first line of the code was not changed to conform with common practices prior to changing it to a const. You did it is the first part of the second line of code, but then gave it the incorrect value again.
You clearly know what you are doing! :clap: Just a small error.

Happy coding! :slight_smile:

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