/

HTML / CSS / JavaScript Tutorial

JavaScript Operator: bitwise left shift

[this page | pdf | back links]

In JavaScript, the << operator is the bitwise left shift operator.

 

For example, 6 << 2 in binary notation is 110 shifted 2 bits to the left so is 11000, i.e. 24 in decimal notation.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Operators


Desktop view | Switch to Mobile