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
fCCto all uppercase. -
Waiting:
FCCshould be a constant variable declared withconst. -
Waiting:The string assigned to
FCCshould not be changed. -
Waiting:
factshould be declared withlet. -
Waiting:
console.logshould be changed to print theFCCandfactvariables.
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: