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.
But what is exactly the questions here? The
" 1234 5678 "
is not a valid phone number (because of superfluous spaces), so theisValidHKPhoneNumber
is expected to returnfalse
. However, it contains a valid phone number somewhere inside, so thehasValidHKPhoneNumber
is expected to returntrue
. What is the problem I am missing?The same is here on JS. No-one responded yet, really? 😵💫
Yes, but you were not supposed to rely on luck, like you did. You're supposed to find a way to pass every time.
@Lightman47
Please, don't post your solutions in the kata discourse, even if they're marked as spoilers.
@Lightman47
Thanks bro for posting your Comment under the Right Lable, Spoiler, so not to reveal any pieces of informations about the Solution , Yep it's that simple
Hope you've done well in Expression Matter as Well
Wish you all the best Bro_ On/Off CW .. Regards .. Zizou
you could do this to see what the inputs are:
@Lightman47 please don't post your solutions in Discourse (that's not what Discourse section is for in the first place), anyone that has completed the kata in any language can see it, so you'll be spoiling it for anyone that has solved it in another language and then want to try it in javascript.
You can always find other solutions in solutions tab :P
It's easier to use triple backtick for larger solutions. See this (section - Optional Section Formatting)
Example:
proper markdown formatting
Use `code`:
code
or indent by 4 spaces:Second: What is your real question? You don't have to spoil code just to ask for formatting.