Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Bit shift

Also written: shift left, shift right, <<, >>, >>>

Moving every bit of a number left or right. `<<` doubles for each place, `>>` halves (rounding down and keeping the sign), and `>>>` shifts right but always fills with 0s.

Where the book teaches it

Related terms

Bit operators32-bit integer