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.
Kata details states that "if you pass it a value, it will return true if a value is a valid primitive number or Number object, and false if not."
On the contrary, JavaScript tests assert that strings representing numbers, like "1" or "2", should return true. Strings are either number primitives or Number objects, so one or the other is wrong.
This comment is hidden because it contains spoiler information about the solution
I know, that's why it's a suggestion, Ü
IMO, sample tests should cover at least what the description of the challenge states to be really useful. I've seen people going straight to [attempt] their solutions instead of using the sample tests for this same reason. And I think that's a pitty.
I'm ok with complex or edge cases being in the full test suite, though.
Thanks for your time!
Killers don't come back to the crime scene. Heroes do.
Pretty clever your monkey-patching, thanks for sharing!
This comment is hidden because it contains spoiler information about the solution