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.
Man, I'm so sorry but I didn't see your comment until this very day. What is "tlas" though?
I think it would be nice for the "treat non-alphabetical characters as spaces" part to be bolded so it's harder to miss. I was in debugging hell until i finally noticed that part... totally my fault, of course, but others might overlook it too.
So much shorter than my sol. Any chance you could comment to decode your tlas?
thx
Hi there,
In your explaination the third call still has the value of '2' rather than '3'.
Cheers,
R
Hi Voile,
Please help me out here. I'm a beginner trying to do the right thing. Are you saying that I should exclude null, NaN, and undefined from my solution and leave it to just handle a blank input ""?
This comment is hidden because it contains spoiler information about the solution
Next time don't forget to mark such posts as 'spoiler' :-)
This comment is hidden because it contains spoiler information about the solution
There's no point in doing that. Input validation doesn't automatically make anything harder hence more interesting. Usually they're just annoying.
OK. I'll give that a go.
Thanks for your comment. I was just trying to think of anything that could trip it up.
Do you think it would be better if I changed the solution to just handle ""?
Are there any of the other ones I should include?
There's a test with
input === undefined
, it's not clear what is expected in this case.Needs random tests.
Sorry for forgetting to delete my original attempt