Problem in Declare a Read-Only Variable with the const Keyword

Problem in Declare a Read-Only Variable with the const Keyword
0.0 0

#1

Tell us what’s happening:
while doing this “ES6: Declare a Read-Only Variable with the const Keyword” lesson i am getting this error message “Unexpected token ?”.

is there any way to skip this exercise and continue to next one ?

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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 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/


#2

You’re not the only one. It looks like a bug. I replicated it on Google Chrome. Just report it as a bug on the Github so the maintainers can work on it