how to use only true condition in ternary operator js code example Example: ternary operator if javascript condition ? exprIfTrue : exprIfFalse