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.
ok, I got it.
+d //converting a string to number
|| 0 //if there was no number inside that string, it gives us 0, instead of NaN.
Can you please explain why do we use AND here and what is happening in this part? Thank you!
n &&
upd: found a solution, so here if n is falsey we just return false before executing the second part.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
thanks a lot! It doesn't allow me switch the flag now :(
This comment is hidden because it contains spoiler information about the solution
I have got an error - 9 characters is too long.
But the description says that the maximum length is 43 chars.
Thanks! That's the best answer!