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

  • (A) +
  • (B) :
  • (C) –
  • (D) ?:
πŸ’¬ Discuss
βœ… Correct Answer: (D) ?:
Explanation: JavaScript supports one ternary operator, the conditional operator ?:, which combines three expressions into a single expression.
Explanation by: Mr. Dubey
JavaScript supports one ternary operator, the conditional operator ?:, which combines three expressions into a single expression.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
267
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate