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.
Not to be rude, but ~43.000 solutions and you conclude that if it doesn't work, it's because the kata is broken?
18K solvers in JavaScript disagree.
You're right, my bad! No negatives in the tests. You're missing the return statement (mandatory if your function's code is between braces).
Check modulo with negative numbers behaviour in JS...