Ad
  • Custom User Avatar

    There is an error in your solution:

    • You seem to mix up reverse and reversed,
    • You don't use reverse correctly (it modifies an array in-place, and not returns a new reversed array),
    • The reason why you even use reverse is not really clear.

    Another problem is that you call parseInt with an argument which is not a string.