Declare a Read-Only Variable with the const Keyword ES6

Tell us what’s happening:

Your code so far


function printManyTimes(str) {
   “use strict”;
   // change code below this line
   const SENTENCE = str + ” is cool!”;
   for(let i = 0; i < str.length; i+=2) {
   console.log(SENTENCE);
   }
   // change code above this line
}
printManyTimes(“freeCodeCamp”);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/declare-a-read-only-variable-with-the-const-keyword/

What I am doing wrong ?

1 Like

Many people have your problem, me too, you just have to wait until some fixes it :confused:

Ohhh okay I see that thanks for the fast response !

They fixed it. It’ll work now.