Chweng Mega
Chweng Mega

Reputation: 1658

What's the meaning of ' >>>' operator in JavaScript

I found a operator Ive never see before in this code

d[(a + 64 >>> 9 << 4) + 14] = a;

I know the << operator is left shift. But really confuse >>>.

Can you help me explain this?

Upvotes: 2

Views: 80

Answers (1)

l.g.karolos
l.g.karolos

Reputation: 1142

Zero fill right shift

Shifts right by pushing zeros in from the left, and let the rightmost bits fall off

Operation   Result     Same as      Result
5 >>> 1        2       0101 >>> 1    0010

Upvotes: 5

Related Questions