My favorite snippet of programming code is the ternary operator used to handle a Boolean evaluation (true/false). It is concise no matter which language Ruby, JavaScript or VB.net. Anatomy of the Ternary operator: A ternary is a two-step conditional method;…