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

let fCC = "freeCodeCamp"; // Change this line
let fCC = "is cool!"; // Change this line
let 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

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

Link to the challenge:

I don’t do good?

When I test your code, I get this syntax error

You shouldn’t have two let fCC.
I would go ahead and reset the lesson.

The goal of this challenge is to use const when you want the variable to remain constant.

Think about which variable is a constant and make sure to use the const keyword

Also, make sure to use the hints to help you debug the errors you are getting.

The hints are really helpful in this case and are trying to get you to the correct answer

Thank you for reply. Thank you very much!

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