Ad
  • Custom User Avatar

    You're confusing the output of two different tests, not a kata issue.

  • Custom User Avatar

    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