Ternary Operator
Term side of the Card
Topic: Syntax
Unit title: Ternary Operator
Categories: Syntax, Operator
Explanation side of the Card
Explanation: The operator used for concise conditional expressions, using `?` and `:` symbols, that evaluates a condition and returns one of two values based on whether the condition is `true` or `false`.
Browser compatibility:
- The chrome browser supports this feature starting from version 1
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 1
- The safari browser supports this feature starting from version 1
Availability: