Declare a Read-Only Variable with the const Keyword - unexpected character

Tell us what’s happening:

Not passing test [console.log should be changed to print the SENTENCE variable] and unexpected token ? is being returned

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”);


function printManyTimes(str) {
  "usconsole.log(SENTENCE);
  // change code below this line
console.log(SENTENCE);
  const SENTENCE = str + " is cool!";
  for(let i = 0; i < str.length; i+=2) {
    console.log(SENTENCE);
  }
console.log(SENTENCE);
  // change code above this line
console.log(SENTENCE);
}
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.62 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

Could be a bug, there are others with the same problem:

and

Also have the same issue. Could be a bug

I keep getting the same message too! " Unexpected token ? "

me too,have the same issue

I’m having the same issue as well.

I am also having this issue on this same lesson

1 Like

Me too, same issue. Frustrating!

How to pass this task?

For detailed bug info please check following link

Thanks @camperextraordinaire informed and helped me about this. Hope I will never get this mistake again.

https://forum.freecodecamp.org/t/es6-declare-a-read-only-variable-with-the-const-keyword/202416/33?u=null_dev