I am having trouble with the following code:
function printManyTimes(str) {
// Only change code below this line
const sentence = str + " is cool!";
for (let i = 0; i < str.length; i+=2) {
console.log(sentence);
}
// Only change code above this line
}
printManyTimes("freeCodeCamp");
When I run it in WebStorm I get the correct result but I am receiving the following error.
How can I make it work?