Ad
  • Default User Avatar

    You made this more complicated then it had to be

  • Custom User Avatar

    Wish this kata had better examples and explanation.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    You've got the right idea, however you are returning a reversed array instead of a reversed integer. Expected: 987654321, instead got: [9,8,7,6,5,4,3,2,1]. What's good about JavaScript is that if you use join("") it will automatically cast the integers to a string in which you can cast back to an integer.