- A true
- B false
- C "false"
- D "true"
- Share this MCQ
Answer:
B
Share this MCQ
The &&
operator in JavaScript performs a logical AND
operation on its operands.
If both operands are truthy, the result is true, otherwise the result is false.
In this case, the first operand (x) is truthy (true), but the second operand (y) is falsy (false), so the result of the &&
operation is false.
Share this MCQ