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.
This comment is hidden because it contains spoiler information about the solution
To help debug the kata you'll need to show this code. Please post it code with proper markdown and a spoiler tag.
The JavaScript version appears to have issues, and I had to hardcode output to some test cases in order to pass.
I basically had the same solutions as everyone else but the tests weren't passing. Might be worth looking into.
Not a kata issue, use
Question
for problems with your code. Also read this: https://docs.codewars.com/training/troubleshooting/#post-discoursePrint the input to see why your code fails.
This comment is hidden because it contains spoiler information about the solution
I've told you why tests expect that, and how to avoid the problem, you just need to initialize the slice in a different way, no need to actually return nil.
There are open issues about that, please don't open another.
As people already said before, there are no tests in JS for this Kata.
"Unhandled rejection TestError: Value is not what was expected"