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.
This is a clever solution, but nested ternary operators is not best practice.
I appreciate this. Rarely do I need to know how to write my own sort in JavaScript,
but useful to know how to do manually because you never know when you'll end up trying
to patch some code written in some shit language that doesn't have fancy features.
Beautiful and elegant solution!
What theory do I need to know to solve this?
Instead of using a variable for the name, let's hard-code all possible outcomes!
Why is this voted "Best Practice"?