shorthand conditional javascript else if code example Example: how to shorten conditional statements javascript var canDrive = age > 16 ? 'yes' : 'no'