“The Left Shift Operator (<<): It moves all bits in its first operand to the left by the number of places specified in the second operand. New bits are filled with zeros. Shifting a value left by one position is equivalent to multiplying by 2, shifting two positions is equivalent to multiplying by 4, etc. (A << 1) is 4. The Signed Right Shift Operator (>>): It moves all bits in its first operand to the right by the number of places specified in the second operand. The bits filled in on the left depend on the sign bit of the original operand, in order to preserve the sign of the result. If the first operand is positive, the result has zeros placed in the high bits; if the first operand is negative, the result has ones placed in the high bits. Shifting a value right one place is equivalent to dividing by 2 (discarding the remainder), shifting right two places is equivalent to integer division by 4, and so on. (A >> 1) is 1. The Unsigned Right Shift Operator (>>>): This operator is just like the >> operator, except that the bits shifted in on the left are always zero. (A >>> 1) is”
―
Learn JavaScript VISUALLY with Interactive Exercises: The Beautiful New Way to Learn a Programming Language
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From

107 ratings, average rating, 6 reviews
Open Preview
Browse By Tag
- love (100736)
- life (78938)
- inspirational (75383)
- humor (44126)
- philosophy (30723)
- inspirational-quotes (28629)
- god (26791)
- truth (24584)
- wisdom (24370)
- romance (24218)
- poetry (23084)
- life-lessons (22258)
- quotes (20568)
- death (20468)
- happiness (18897)
- hope (18409)
- faith (18275)
- inspiration (17199)
- spirituality (15590)
- relationships (15371)
- religion (15315)
- motivational (15226)
- life-quotes (15161)
- love-quotes (15026)
- writing (14882)
- success (14133)
- travel (13266)
- motivation (13068)
- time (12790)
- science (12016)