Tell us what’s happening:
I don’t know why the last test is not passing. It says i should change console.log(); to get the SENTENCE variable, which I did. Am I missing something?
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.87 Safari/537.36.
I’m getting the same error and I’m also not sure why. Any luck figuring it out?
When I run if with firefox the test box says “invalid regular expression flag s” and when I tried running it on Chrome instead I got an “Unexpected token ?” error. And both are telling me to change console.log(); to get the SENTENCE variable, which I’ve done.