Write the following syntax using ternary operator.
Attachments:

Answers
Answered by
6
The conditional (ternary) operator is the only JavaScript operator that takes three operands: a condition followed by a question mark ( ? ), then an expression to execute if the condition is truthy followed by a colon ( : ), and finally the expression to execute if the condition is falsy.
Similar questions
Math,
4 months ago
Social Sciences,
4 months ago
Geography,
8 months ago
Political Science,
8 months ago
English,
1 year ago