Answers for "ES6: Declare a Read-Only Variable with the const KeywordPassed"

0

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");
Posted by: Guest on December-20-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language