14.5k views
0 votes
Explain insert a ternary operator.?​

1 Answer

1 vote

Explain insert ternary operator.?

______________________________________

QUESTION;

Explain insert ternary operator.?

ANSWER;

  • The ternary operator is an operator that exists in some programming languages,which takes three operands rather than typical one or two that most operators use. lt provides a way to shorten a simple of else block. for example,consider the below JavaScript code. var num =4, msg = "";if (num === 4 )

____________________________________

User Andrei R
by
4.5k points