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

can i please be assisted with this code

Your code so far

const FCC = "freeCodeCamp"; // Change this line
let fact = "is cool!"; // Change this line
let fact = "is awesome!";
print the (FCC, fact); // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

Challenge Information:

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

You should use the console.log();

Also, you shouldn’t try to declare variables twice. Once you have declared a variable (with let or const), you reassign it using only the variable name itself.

EXAMPLE:

// bad - variable declared twice
let a = 1;
let a = 2;

// good - variable declared and then reassigned
let a = 1;
a = 2;
1 Like

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