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

Tell us what’s happening:
Describe your issue in detail here.

  • var should not exist in your code.

  • Failed:You should change fCC to all uppercase.

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

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

  • Passed:fact should be declared with let.

  • Failed:console.log should be changed to print the FCC and fact variables. * var should not exist in your code.

  • Failed:You should change fCC to all uppercase.

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

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

  • Passed:fact should be declared with let.

  • Failed:console.log should be changed to print the FCC and fact variables. * var should not exist in your code.

  • Failed:You should change fCC to all uppercase.

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

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

  • Passed:fact should be declared with let.

  • Failed:console.log should be changed to print the FCC and fact variables. * var should not exist in your code.

  • Failed:You should change fCC to all uppercase.

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

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

  • Passed:fact should be declared with let.

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

  • var should not exist in your code.

  • Failed:You should change fCC to all uppercase.

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

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

  • Passed:fact should be declared with let.

Your code so far

const FCC = "freeCodeCamp"; // Change this line
let Fact = "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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

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

Link to the challenge:

You changed the name correctly here.

I’m assuming you want to use the same variable here?

You don’t want to change the name of this variable.

thx for your responding bbsmooth. I wil try try it again.

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