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.
Here ya go
https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#print-input
For JS - that's console.log, obviously.
For javascript, I pass the example tests but fail some of the other tests. It would be helpful to see the test cases to help pin point where my code is wrong. Tried running my own test cases and it seems correct.