SyntaxFix
Write A Post
Hire A Developer
Questions
condition ? truth : false;
If the condition is true then evaluate the first expression. If the condition is false, evaluate the second expression.
true
false
It is called the Conditional Operator and it is a type of Ternary Operation.