Déclarer une variable en lecture seule avec le mot-clé const

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

const FCC = "FreeCodeCamp"; 
FCC = "old";
let fact = "is cool!"; 
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/99.0.4844.74 Safari/537.36

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

Link to the challenge:

Please describe what you need help with.

You can’t change the value of a const variable.

En regardant les instructions, il y a deux choses à faire dans cet exercice :

  1. Changer comment “fCC” est écrit.
  2. Changer “var” avec “let” ou “const” aux bons endroits.

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