ternary operator vs if else javascript code example Example: ternary operator if javascript condition ? exprIfTrue : exprIfFalse