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.
You don't need the return here :)
Yeah.. I should have thought of it.
I've completed the task. Thanks much for you help!
There is probably a whitespace character at the beginning or the end of the input. You can return the input as an array so that you can see each individual character.
E.g.
['1', '2', '7', '.', '0', '.', '0', '.', '1']
Your code must return false if there is a whitespace character in the input.
Thank you for giving the idea!
Am I missing something?
It seems that 127.0.0.1 is being checked for two times.
For the first case it is expected that it will return true, but for the second time - false.
Here is the output:
1)
Log
127.0.0.1
✔ Test Passed: Value == true
Log
127.0.0.1
✘ Expected: false, instead got: true
It's a random testcase, but you can print the input to the console to see what it is.
What is the 83th test case?