Shift operator (Definition)

Used to create a shift expression.

Availability:

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

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

See also:Bitwise shift left (<<), Bitwise shift left then assign (<<=), Bitwise shift operator, Bitwise shift right (>>), Bitwise shift right and assign (>>=), Bitwise unsigned shift right (>>>), Bitwise unsigned shift right and assign (>>>=)

Cross-references:

ECMA 262 edition 2 - section - 11.7

ECMA 262 edition 3 - section - 11.7