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.
Copied some basic tests to the sample tests. Fixed.
Don't bother! I figured it out myself. By the way, +1 for good use of
splice
.Looking at your code, I see you added a third argument to
splice
.How come that fixed the solution?
Thanks... After a small tweak of my code it now passes all tests...!
What I did find though was that when it was failing, if I re-submitted the exact same code it would fail different amounts of tests - which made finding my error a bit more of a challenge.
This comment is hidden because it contains spoiler information about the solution
Try again, it seems to be working fine under
Nodev6.11.
Of course, some test cases are failing, but they are only a few.
This comment is hidden because it contains spoiler information about the solution
There nolonger appear to be any 'tests' for the javaScript version of this Kata.