const makeItFunny = (text, num) => {
let i = 0;
let result = '';
while (i < text.length) {
if ((i + 1) % num === 0) {
text[i].toUpperCase();
}
result += text[i];
++i;
}
return result;
}
Expected: "I NevEr LooK bAck".
Received: "I never look back"