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.
@codejosh this is the satisfaction rate, not the completion rate. the completion rate for this one seems to be about 19% (407 total times completed / 2128 warriors trained)
Is it really that obscure if you can Google it in a few minutes, and the completion rate is 82%?
Hey @Falafel_ ; thanks for your effort on contributing kata to Codewars, and happy new year!
I don't work in JS so I can't help you, but my best advice is:
Send your kata back to draft ASAP (while it is in Beta people will downvote it for not having random tests).
Go on the Codewars Discord - there is a channel called #help-author which is designed for this exact purpose. You can ask a JS user to view your draft (just send the link) and/or ask for general advice on making JS random tests.
As mentioned, as per 1, when your kata is in Beta it is expected to be "ready" so I highly recommend unpublishing to avoid the downvotes; there's no rush, just republish once you've learnt about how to do random tests in JS :)
edit - also, while in draft, you can mess around with the random tests more easily without affecting submitted solutions. One simple tip to learn how to use them is find a high-quality kata you have already solved, and read their Test Cases (once you have solved the kata, the Tests are visible in the solutions page, so you can learn from there).
Your function should return a list. Not a kata issue.
See the sample tests:
The result is sorted and that's what the error is about.