What is Bitwise Right Shift Operator (>>) in JavaScript?

JavascriptWeb DevelopmentFront End Technology

The left operand’s value is moved right by the number of bits specified by the right operand.


You can try to run the following code to learn how to work with Bitwise Right Shift Operator −

         var a = 2; // Bit presentation 10
         var b = 3; // Bit presentation 11

         document.write("(a >> b) => ");
         result = (a >> b);
Published on 19-Jan-2018 05:53:21