Purpose of the Assignment Operator “^=” in JavaScript?

  1. Assigns the value of the Second Operand to the first Operand.

  2. Subtracts 2 operands and assigns the result to the first operand.

  3. Performs a bitwise exclusive OR operation on 2 operands and assigns the result to the first operand.

  4. Performs a bitwise OR operation on 2 operands and assigns the result to the first operand.


Correct Option: C

Find more quizzes: