We have learned how to use the If and Else keywords together with comparison and logical operators in previous lesson, now we will learn how to use conditional operators without using If and Else. Conditional operators let JavaScript program executes certain jobs according to certain conditions.
The format of the conditional operator is
Conditional Expression ? Execution 1: Execution 2