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

Related questions

0 votes
asked Mar 21, 2021 in JavaScript by rajeshsharma
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
...