Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

564 B

Conditional Operators

The conditional operator (or "ternary" operator) is a shorthand if...else statement. The syntax is: condition ? expression1 : expression2;. That is, the operator will execute expression1 if the condition is truthy, and otherwise expression2 if the condition is falsy.

Free Content Conditional Operator