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.
Please, read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution entirely, about how to debug your code and if you're sure there is a problem, about how to properly post your code so it can be checked, there are more than 1000 solutions in js already, so it's a problem with your code.