Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Among the following, which one is a ternary operator?

  2. A.

     +

    B.

     :

    C.

     –

    D.

     ?:

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    JavaScript supports one ternary operator, the conditional operator ?:, which combines three expressions into a single expression.


Be The First To Comment