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 reduce even more by only using two 'ifs'
Index 1, if it's 'e' then it is not green
Great point! And cool solution!
Do you mind explaining your solution a little? I thought you could only do ternary if it was a this or that choice? I had no idea you can use a third option with ternary. TYIA.
You don't need so many lines. You can use a ternary operator!
It's nice!