Home » JavaScript » JavaScript Operators » Question
  1. Among the following, which one is a ternary operator?
    1. ?:
    2. :
    3. +
    4. None of these
Correct Option: A

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



Your comments will be displayed only after manual approval.