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 fact = "freeCodeCamp"; // Change this line
let fact = "isCool!"; // Change this line
fCC = "isAwesome!";
console.log(fCC,fact); // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36

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

Link to the challenge:

do you have a question?!

lets refer to instructions

Use let when you want the variable to change, and const when you want the variable to remain constant

  • do you see which “variable” is getting updated? keep that “let”
  • do you see which variable is not “changing” its value? make that “const” with “common practice”, look at example code given in this “step”

address those changes and it should be alright, happy learning :slight_smile:

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