- A Alternative to if-else
- B Switch statement
- C If-then-else statement
- D immediate if
- Share this MCQ
Answer:
D
Share this MCQ
A conditional expression is a statement that performs a comparison or test and returns a value based on the outcome of the comparison.
In JavaScript, a conditional expression can take the form of a ternary operator, which is a shorthand way of writing an if-else statement.
Share this MCQ