Console.log a const variable failed

Console.log a const variable failed
0.0 0

#1

Tell us what’s happening:
My solution isn’t being accepted, although i did everything as instructed.

  • The issue is with the Console.log(SENTENCE)

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/66.0.3359.181 Safari/537.36.

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


#2

you have done what is required , there is a bug in this challenge and you are not the only one who got stuck in it ,just keep going and come back to it when the maintainers fixes it.


#3

Hi, Thanks for ur time mentioning that


#4

Just want to add my thanks as well - I was stuck on this and sure it wasn’t my code.