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
fCC
to all uppercase. -
Waiting:
FCC
should be a constant variable declared withconst
. -
Waiting:The string assigned to
FCC
should not be changed. -
Waiting:
fact
should be declared withlet
. -
Waiting:
console.log
should be changed to print theFCC
andfact
variables.
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: