Bitwise shift operator (Definition)

A shift operator that moves the bits in an operand as if it were a shift register.

Availability:

ECMAScript edition - 2
Property/method value type:Number primitive

Bitwise shift operators convert their left operands to a 32-bit integer value and shift them according to their right operand. The operator determines the kind of shifting that is applied.

See also:Bit-field, Bitwise shift left (<<), Bitwise shift left then assign (<<=), Bitwise shift right (>>), Bitwise shift right and assign (>>=), Bitwise unsigned shift right (>>>), Bitwise unsigned shift right and assign (>>>=), Shift expression, Shift operator

Cross-references:

ECMA 262 edition 2 - section - 11.7

ECMA 262 edition 3 - section - 11.7