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.
You can write if(word), it's same as if(word == true). return statement ends method execution, it's not possible to return "Yes" and "No" at once, that is why you can avoid using else statement.
i like this method, because it's a little easier to read, some might say.
Well, another thing tho is that you don't really want to use the else here.
It's not needed, you can rather just return "no" if the flow falls through the first condiction check, then bool is obviously false.
oh ok,tnx