26.
Which logical operator is used to check whether two expressions have different truth values?
&&
||
!
^
Correct: D
The XOR (^) operator is used in JavaScript to check whether two expressions have different truth values. It returns true if one expression is true and the other is false, and it returns false if both expressions have the same truth value.