/

HTML / CSS / JavaScript Tutorial

JavaScript Operator: bitwise XOR

[this page | pdf | back links]

In JavaScript, the ^ operator is the bitwise XOR operator.

 

For example, 6 ^ 2 in binary notation is 110 ^ 010 so is 100, i.e. 4 in decimal notation.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Operators


Desktop view | Switch to Mobile