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.
In your IDE you cannot test the whole bunch of tests, which include random tests. Don't be disappointed, this is very common, and the work you have done was probably not in vain, it just probably means it needs some extra adjustments. You should try to debug your solution understanding the cases where it fails. If you feel helpless (and even if you don't), you may find some helpful tips in the official documentation: https://docs.codewars.com/training/troubleshooting/
Hi. It's not clear what's the problem you are trying to point out here. Could you be more explicit please? Maybe start reading there: https://docs.codewars.com/getting-started/solving-kata
I tried your code on sample tests and it gives things like that:
Which means your code return the first array (array with several
undefined
s while it should have returned the second one[[1,2,3]]
). This is a good starting point to try debugging your code.