Tell us what’s happening:
Describe your issue in detail here.
-
varshould not exist in your code. -
Failed:You should change
fCCto all uppercase. -
Passed:
FCCshould be a constant variable declared withconst. -
Failed:The string assigned to
FCCshould not be changed. -
Passed:
factshould be declared withlet. -
Failed:
console.logshould be changed to print theFCCandfactvariables. *varshould not exist in your code. -
Failed:You should change
fCCto all uppercase. -
Passed:
FCCshould be a constant variable declared withconst. -
Failed:The string assigned to
FCCshould not be changed. -
Passed:
factshould be declared withlet. -
Failed:
console.logshould be changed to print theFCCandfactvariables. *varshould not exist in your code. -
Failed:You should change
fCCto all uppercase. -
Passed:
FCCshould be a constant variable declared withconst. -
Failed:The string assigned to
FCCshould not be changed. -
Passed:
factshould be declared withlet. -
Failed:
console.logshould be changed to print theFCCandfactvariables. *varshould not exist in your code. -
Failed:You should change
fCCto all uppercase. -
Passed:
FCCshould be a constant variable declared withconst. -
Failed:The string assigned to
FCCshould not be changed. -
Passed:
factshould be declared withlet. -
Failed:
console.logshould be changed to print theFCCandfactvariables. -
varshould not exist in your code. -
Failed:You should change
fCCto all uppercase. -
Passed:
FCCshould be a constant variable declared withconst. -
Failed:The string assigned to
FCCshould not be changed. -
Passed:
factshould be declared withlet.
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: