Basic JavaScript - Declare a Read-Only Variable with the const Keyword. What to do next? How to change console.log in to print?

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
fact = "is awesome!";
print(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/ Safari/537.36 Edg/108.0.1462.42

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

Link to the challenge:

There is no native JS function “print”. What you’re looking for is console.log. Don’t change things you don’t need to. That is good advice when doing these challenges and if you’re working a coding job.

I see the confusion:

console.log should be changed to print the FCC and fact variables.

You are interpreting to mean that you should “change the console.log function to a print function”.

What it’s saying is, “You should change the console.log (or more accurately what is in it) so that it shows (prints) on the screen the variables”.

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