Unfamiliar characters used in JavaScript encryption script

后端 未结 3 1980
既然无缘
既然无缘 2020-12-16 18:28

Here is an excerpt from a JS encryption script that I am studying.

function permutationGenerator(nNumElements) {
    this.nNumElements     = nNumElements;
           


        
3条回答
  •  佛祖请我去吃肉
    2020-12-16 19:06

    Left shift 8 bits and bitwise OR with j.

    << is the left shift operator. Shifts the bits in the variable left the number of positions indicated.

    >> is the right shift operator. Shifts the bits in the variable right the number of position indicated.

    | is the bitwise OR operator. Performs a logical OR on each bit in the two operands.

    & is the bitwise AND operator. Performs a logical AND on each bit in the two operands.

提交回复
热议问题