In defense of the ternary statementTernary statements get a bad rap, but you can do some pretty cool things with them in JavaScript.https://www.youtube.com/watch?v=sxeSQDyE55I