What do “>>” and “<<” mean in Javascript?

后端 未结 10 840
清酒与你
清酒与你 2020-11-29 13:39

I have a piece of Javascript code I\'m trying to understand

// read big-endian (network byte order) 32-bit float
readFloat32 = function(data, offset) {
    v         


        
10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 13:56

    shift left and shift right operators. If you have a number it will shift its bits to left or right.

提交回复
热议问题