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

var fCC = "freeCodeCamp"; // Change this line
var fact = "is cool!"; // Change this line
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/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15

Challenge Information:

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

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

hello and welcome to fcc forum :slight_smile:

  • you need to make use of “let” or “const” instead of “var” in those variables

to decide which to use lets refer to instructions

Use let when you want the variable to change, and const when you want the variable to remain constant.

happy coding :slight_smile:

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