This is a clever solution, but nested ternary operators is not best practice.
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"?