- A 10
- B 20
- C 30
- D 0
- Share this MCQ
Answer:
C
Share this MCQ
The ^
operator in JavaScript is the bitwise XOR
operator, which performs a bitwise XOR
operation on its operands.
In this case, the ^
operator is called on x
and y
, with x as the first operand and y as the second operand.
Since x is 10
and y is 20
, the result of the ^
operator will be the bitwise XOR
of the binary representations of 10
and 20
, which is 30
in decimal.
Share this MCQ