Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You're confusing the output of two different tests, not a kata issue.
I have a really weird problem with this. I am using javascript as language everything is going good. But whenever I try to return my result it's breaking my function. console.log() works how I want it but when I switch it to the return at the end it's breaking the loops and duplicate mess up with my result.
Example
console.log(result.join('')) // prints: (((
return result.join('') //prints: ((((((
Also tried:
console.log(result.join(''))> return (result.join('')) // which means I just deleted console.log() and write return. with parentheses included and without them. can anyone help me