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.
that's the definition of cowboy haha
risky :D
lol
Can we make this not a spoiler? It really should be included in the description of the kata.
The .toString() is actually unneeded as you're already dealing with the string prototype. i.e., only strings will be able to call this upon themselves.
I feel like you're splitting hairs. NaN, literally not a number, is of type number because there is no other primal it could be attached to. Would it be attached to a string? Array? Boolean?
From the ECMA 2015 specfications it says that NaN is "number value that is an IEEE 754-2008 'Not-a-Number' value." What about positive and negative infinity? Those are also "number" values that don't directly relate to a number but are under the number primals.
You should either specify that non-numerical number types should be accounted for or admit that your test case was ill-concieved and that it's illogical to try and add NaN, infinity, or -infinity.
I think so, SQLite doesn't have it. Not sure about MySQL/MariaDB, but those are not supported on Codewars yet.
This comment is hidden because it contains spoiler information about the solution