You’re likely already familiar with the ternary operator, how it takes three operands and is often used to create one-liners that would otherwise take multiple lines to write. There are other constructs that cleverly emulate the ternary operator. I’ll show the few that I know of here, but first lets start with an example that […]