- A true
- B false
- C "true"
- D "false"
- Share this MCQ
Answer:
A
Share this MCQ
The ||
operator in JavaScript performs a logical OR
operation on its operands.
If either operand is truthy, the result is true, otherwise the result is false.
In this case, the first operand (x) is truthy (true), so the result of the ||
operation is true, regardless of the value of the second operand (y).
Share this MCQ