/

HTML / CSS / JavaScript Tutorial

JavaScript Operator: bitwise AND

[this page | pdf | back links]

In JavaScript, the & operator is the bitwise AND operator.

 

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

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Operators


Desktop view | Switch to Mobile