0 votes
120 views
in Discuss by (3.2k points)
edited
Give the general syntax of conditional operator?

1 Answer

0 votes
by (3.4k points)
selected by
 
Best answer
The conditional (ternary) operator is the only JavaScript operator that takes three operands: a condition followed by a question mark ( ? ), then an expression to execute if the condition is truthy followed by a colon ( : ), and finally the expression to execute if the condition is falsy

Related questions

0 votes
1 answer 84 views
0 votes
1 answer 100 views
0 votes
1 answer 102 views
0 votes
1 answer 111 views
0 votes
1 answer 112 views
asked Jun 11, 2022 in Discuss by nehapatil (3.2k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

560 users

...