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.
The ternary operator really isn't needed here, as it would return
true
andfalse
for those cases anyway. So this solution could be simplified by removing it.You don't need the last if-clause. Just return
first && second && third
directly.There's also a tiny typo there, "thrid" instead of "third" ;)
Good job introducing local variables with reasonable names, that way you can immediately see what's going on.
However, I think some of these comments could be removed. For example "End Loop Here", because, for me, it adds more noise than clarity.
Nontheless, well done!
I like that you renamed the method parameters, I did a similar thing.
Short variable names are really bad, since you can't immediately see what they stand for.
Good job!