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

Tell us what’s happening:
Describe your issue in detail here i cant seem to understand wherew is my error can anyone explain what amI doing wrong? tests: * var should not exist in your code.

  • Waiting:You should change fCC to all uppercase.

  • Waiting:FCC should be a constant variable declared with const.

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

  • Waiting:fact should be declared with let.

  • Waiting:console.log should be changed to print the FCC and fact variables.

Your code so far
var fCC = “freeCodeCamp”; // Change this line
var fact = “is cool!”; // Change this line
fact = “is awesome!”;
console.log(fCC, fact); // Change this line
const FCC = “freeCodeCamp”;
let fact = “is cool”;
let fact = “is awesome”;
console.log(FCC, fact);

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

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

Link to the challenge:

You are supposed to change the indicated lines, and only the indicated lines, in place rather than add new lines below.

Thank you so much , it was confusing, i tried in diffferent ways and i didnt know what was going on, it helped me very much!

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