"Unexpected token ?" error

"Unexpected token ?" error
0.0 0

#1

Hi everyone,

After running code :

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

I get “Unexpected token ?” error. Please, help me to fix it. Thanks.

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


#2

This is a known bug and has been fixed in the codebase, we’re just waiting for it to be pushed to the server

So fingers crossed we’ll be able to beat that challenge soon :slight_smile:


#3

@gebulmer, thank you!