0 votes
101 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 69 views
0 votes
1 answer 88 views
0 votes
1 answer 88 views
0 votes
1 answer 92 views
0 votes
1 answer 91 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

537 users

...