What is a ternary operator (?:) in JavaScript?
Answers
Answered by
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