I'm confused. Why does i+=1 in the following block of code print the output 12x, but i+=2 only prints it 6 times? Shouldn't it be the other way around? (My brain isn't working today.)
function printManyTimes(str) {
"use strict";
const SENTENCE = str + " is cool!";
for (let i = 0; i < str.length; i += 2 ) {
console.log(SENTENCE);
}
}
printManyTimes("freeCodeCamp");