What is the JavaScript ternary operator? The ternary operator is a shortcut for the if statement. It consists of three operands; a question mark, a condition, and an expression to execute if the condition is true,followed by a colon and another expression to execute if it’s false
0
0
3
0
0
Download Image