0 votes
in JavaScript by
Among the following, which one is a ternary operator in JavaScript?

a) #

b) ::

c) &:

d) ?:

1 Answer

0 votes
by

Answer:-  D

Reason: JavaScript supports one ternary operator, the conditional operator ?:, which combines three expressions into a single expression. If else case can be replaced by the conditional operator

...