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.
Thanks for the feedback, I added 100 random tests in it
This comment is hidden because it contains spoiler information about the solution
Added random tests
A programmer tired of using the same patterns: camelCase, PascalCase, kebab-case, snake_case, etc, decided to create his own case: CoNSoNaNTCaSe, which is basically to make all consonant uppercase, the other letters lowercase and no spaces between words, numbers and special characters are kept the same.
In the one you sent, it must be separated, in the one I did, it must be removed and if they are all odd numbers, it must return 2, I believe they are similar but it is not duplicated
the idea that the result contains only even numbers as zero is not even I added a comment:
It was an error in the publication, this example is supposed to be
assert.strictEqual(onlyEven(0), 2)
, I updated it, you can try nowIt has things in common but it's not the same