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.
as the kata specifically says it accepts only booleans as inputs, then yes thats what they want.
boolToWord("Poppet") returns "Yes" is this what you wanted?
I did not know there is such a method to do that, I love your answer
This adds unnecessary complexity. When would this be the preferred way? I'm still learning. So, please take it easy on me.
clever, but!
This comment is hidden because it contains spoiler information about the solution
Better use !== to also check for equal data type.
Further information: https://stackoverflow.com/a/359509/10781526
here -> ;
Your solution is so concise, I love it!
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 for comment. However, could you please provide the "why" for your statement next time?
Can someone explain this one?
you are absolutely right. Thanks, man!
The
true : false
bit at the end is unnessary. The&&
will return the result you need.Loading more items...