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.
Hmm,interesting. Ok, i'll remember it. Thank's for help
You post was visible in the homepage discourse for all to see.
Hello, why my link is a spoiler? I post it at "answer section". I thought my comment can see only people, who resolve the problem or who used "unlock solution".
Use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
I see, I wasn't aware of that. Just seemed buggy.
Numbers go up to
Number.MAX_SAFE_INTEGER
, it'll take the entire day to loop to that. Try another approach, not a kata issue.Ahh I see, I think looking back I was trying to be more explicit about why I was returning 0. It totally makes sense to just say if theres not a length then do this. Thanks for the feedback man. Hope you enjoy your day as well.
If the value is falsy you can use the logical not operator.
ex:
if(!x.length) and sometimes (!x)
I remeber reading an article about it. I'll try to find it!
Enjoy your day.
Can you explain why?
Comparing with 0 is not best practice.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution