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.
It is good to use the ternary operator here. It can distinguish between conditions and boolean.
you are saying: if true = true, if false = false... :D
amazing
You can use only one loop.
Inside loop I can use 2 if condition for min and max
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.That is a great solution using the conditional operator! I've been wanting to learn about it for a long time, thanks for you solution :D It was really helpful!!