1st
1347 kyuivan-kono
Train Now

Start training on this collection. Each time you skip or complete a kata you will be taken to the next kata in the series. Once you cycle through the items in the collection you will revert back to your normal training routine.

Description

function accum(s) {
let newStr =[];
s = s.toLowerCase().split('');

for (let i = 0; i < s.length; i++) {

newStr.push(s[i].toUpperCase());

for (let j = 1; j < i + 1; j++) {
  
  newStr[i] += s[i];
}

}

return newStr.join('-');
}

Ad
Fundamentals
Strings
Puzzles