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.
Nice one!
The title is "Create Phone Number", not "Generate" one. Work smarter, not harder, my friend.
it won't give an extra column? if not it's quite cool
It is because I do not think about it, I just use === everywhere to ensure I am handling the values with the expected type.
why did you use === for checking odd or no the number? The function strlen () get the string length, so it's mean you have the number, but operator === usually using for string to avoid automatic convert to number.
The requirements state that an array of 10 integers is given, and it is implied that the order of integers in the array should be the same as the order of the integers in the phone number. Given those requirements, this solution may be a tad bit wack, but it's certainly not lazy.
This should not be a level 6. oooh aahhh mr.hackerman plugging in variables into a string.
This is a syntax exercise at best, and certainly isnt "creating" anything.
This comment is hidden because it contains spoiler information about the solution
gj
"Okay, Houston, I believe we've had a problem here. We need more tests."
An actual god amongst us over here
Reading through the Discourse section helped me realize better what this question was asking, and I find myself thinking "OF COURSE THATS WHAT THE QUESTION MENT" Good kata. W
I was attempting to test weather or not there we're thorough test, but... hahah