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.
because null === null evaluates to true
if I'm understanding your question correctly
Read the posts below. Like this one: https://www.codewars.com/kata/reviews/55908ab5932c2fc59f000070/groups/55c8b47c16ffe086d7000056#6312e85473f6480018781578
Please use the spoiler flag and appropriate formatting when posting code. See here: https://docs.codewars.com/training/troubleshooting/#post-discourse
You can use any function as long as you implement the correct validation logic. Usage of
Number
is not restricted for this kata.Your code is definitely incorrect if it fails for basic cases like
"1234"
. You must be incorrectly (locally) testing your function.