true?true:false javascript ternary code example Example: ternary operator if javascript condition ? exprIfTrue : exprIfFalse