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.
The writing of methods corresponds to that accepted in a particular language: for Javascript camelcase, for Python and Ruby snakecase. Perhaps you solving in Python based on the description for the JS? Because the examples in the description differ depending on the selected language.
See https://www.codewars.com/kata/562086bbaacc2b4d13000047/discuss/javascript#657d1ac4dc8017ba924dd64e
No clue why that solution passes:
yes, only positive integers.