Declare a Read-Only Variable with the const Keyword code example
Example: ES6: Declare a Read-Only Variable with the const KeywordPassed
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");