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.
At the beginning I was very confused why this counts as a solution, as it throws an error once submitting a string with only valid letters.
However the kata description at the end says "The string has a length greater or equal to one..." so I guess thats why this solution counts :P
this answer does not work for the null string - you can have to check if the value is not null
I got "TypeError: Cannot read property 'length' of null" for this.
how did this work with a length of null?
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
Can someone please explain why adding || [] can solve the null.length error. what's the raason behind it. Thanks in advance!
Technically
s
could also be null so I checked for both situations in my attemptMaybe you, sir, if you excuse me, need some train on it.
This comment is hidden because it contains spoiler information about the solution
Please, use spoiler flag. Your post was visible in the home page.
This comment is hidden because it contains spoiler information about the solution
Yeas, this works nice
Loading more items...