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

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

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:

Welcome to our community!

You have declared the same variable ‘fact’ two times, which is not allowed (don’t change the code line where the “Change this line” text is not added as a comment).

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