Tell us what’s happening:
I can’t get the what’s the difference between let keyword and const keyword.
Plz explain it clearly…
Your code so far
function printManyTimes(str) {
"use strict";
// Only change code below this line
var sentence = str + " is cool!";
for (var i = 0; i < str.length; i+=2) {
console.log(sentence);
}
// Only 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/85.0.4183.121 Safari/537.36
.
Challenge: Declare a Read-Only Variable with the const Keyword
Link to the challenge: