Computer Science, asked by tushar2140, 1 year ago

What is a ternary operator (?:) in JavaScript?

Answers

Answered by harsh05572
1

ANSWER

______________________________________

Ternary means "three" operations together. The symbol ? (a question mark) and : colon are used in Ternary operators because it requires three expressions to work.

______________________________________

Additional Information :-

______________________________________

These operators work upon three expression using symbol ? are known as ternary as well as conditional operators.

______________________________________

Example :-

• 5 > 7 ? 5 : 7

result output : 7

became the yest expression 5 > 7 is False.

______________________________________

#answerwithquality

#BAL

______________________________________

Similar questions