Not able understand the use of

This question already has an answer here:

  • Using bitwise OR 0 to floor a number 5 answers

  • That's bitwise OR operator

    Performs the OR operation on each pair of bits. a OR b yields 1 if either a or b is 1. The truth table for the OR operation is:

    Bitwise ORing any number x with 0 yields x. Bitwise ORing any number x with -1 yields -1.

    链接地址: http://www.djcxy.com/p/77444.html

    上一篇: 0“的意思是在JavaScript中

    下一篇: 不能理解使用