I think there is a bug in the ‘ES6: Declare a Read-Only Variable with the const Keyword’ challenge.
Here is my 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");
…and here is the output:
// running test
Unexpected token ?
// tests completed