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

Tell us what’s happening:

Describe your issue in detail here.
what do i need to fix it says fcc should be declared with const

Your code so far

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

Challenge Information:

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

Hello there. const does not need a period after it. Additionally the last line should be

console.log(FCC, fact);

The reason why console has a period after it is because the property log is on the object.

Happy learning. :slight_smile:

1 Like

You have an error in this line:
const. FCC = "freeCodeCamp"; // Change this line

Can you spot it?

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