is … Elvis operator : ternary operator shorthand The ternary operator lets your code use the value of one expression or another, based on whether the condition is true or false: