0 votes
in JavaScript by
Which one of the following is an ternary operator:

a) ?

b) :

c) -

d) +

1 Answer

0 votes
by

Answer: A

Reason: In JavaScript, only one ternary operator is supported, known as the conditional operator, which combines three different expressions into one expression. However, the conditional operator can also be used in place of the "if else" statements as well.

Related questions

0 votes
asked Oct 10, 2022 in JavaScript by SakshiSharma
0 votes
asked May 10, 2023 in Python Flask by john ganales
...