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

Tell us what’s happening:

Describe your issue in detail here.
i need

  • FCC should be a constant variable declared with const.

  • Failed:The string assigned to FCC should not be changed.

Your code so far

let = FCC = "freedcodecamp"; // Change this line
let fact = "is cool!"; // Change this line
fact = "is awesome!";
const = 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/118.0.0.0 Safari/537.36

Challenge Information:

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

This line is not using a const keyword.

Here is the original code:

var fCC = "freeCodeCamp"; // Change this line
var fact = "is cool!"; // Change this line
fact = "is awesome!";
console.log(fCC, fact); // Change this line

You need to use let and const where var is

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