Declare a Read-Only Variable error

Declare a Read-Only Variable error
0.0 0

#1

This code works fine on my machine, on freeCodeCamp it says console log should be changed ?


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

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 lesson has a known bug. Not sure if that’s what you’re seeing. An update is in progress.