(?)
Quotes are added by the Goodreads community and are not verified by Goodreads. (Learn more)

“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”

Ivelin Demirov, Learn JavaScript VISUALLY with Interactive Exercises: The Beautiful New Way to Learn a Programming Language
Read more quotes from Ivelin Demirov


Share this quote:
Share on Twitter

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

Learn JavaScript VISUALLY with Interactive Exercises: The Beautiful New Way to Learn a Programming Language (Learn Visually) Learn JavaScript VISUALLY with Interactive Exercises: The Beautiful New Way to Learn a Programming Language by Ivelin Demirov
107 ratings, average rating, 6 reviews
Open Preview

Browse By Tag