What does the notation somevar >> 0 mean in javascript?
somevar >> 0
Thanks
In a >> b, >> is a bitwise operator that shifts a in binary representation b (< 32) bits to the right, discarding bits shifted off. Reference: https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators
a >> b
>>
a
b
2.1m questions
2.1m answers
60 comments
57.0k users