What does the notation somevar >> 0 mean in javascript?
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
Bitwise right shift. Although somevar >> 0 looks weird.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With