[Solved] Bitwise Left shift and Right shift Calculation in javascript [closed]


a << b = a · 2b
a >> b = a / 2b = a · 2-b (dropping any decimals)

So to calculate 4 << 5, you need to double 4 five times: 4 · 25 = 4 · 32 = 128. Similarly for 3 >> 3.

4

solved Bitwise Left shift and Right shift Calculation in javascript [closed]