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.
This comment is hidden because it contains spoiler information about the solution
i agree for this solution. i'm never thinking this before. thanks
nice, clean!
could add it but null undefined etc are not booleans
The idea is that booleans only have two values. true and false. If the entered boolean is true it outputs "Yes" if the entere boolean is false it outpits "no" There isnt even any calculation required here. It just directly returns Yes or No depending on whats entered.
unthinkable :)
I was today years old when I learned about fall through!
Did it the same way
This doesn't seem like the most practical approach.. don't know why it has most clever votes..
I really dig the way the alphabet array was created here.
Yes, I did exactly what you say ,But in a more stupid way
tf, I didn't think to write this. Looks like I have to keep sharpening my logic lol
if the specified substring ( a - z ) is not present in the given value ( string ), the indexOf() returns a negative value.
I don't think it matters. the logic behind a ternary operator is that if whatever before the "?" is true, then return yes:no, so using (bool === true) ? or bool ? is the same logic.
This comment is hidden because it contains spoiler information about the solution
Loading more items...