/

HTML / CSS / JavaScript Tutorial

JavaScript Operator: bitwise OR

[this page | pdf | back links]

In JavaScript, the | operator is the bitwise OR operator.

 

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

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Operators


Desktop view | Switch to Mobile