What is this JS writing method?

I"ve seen it in an outsourced project before, but I don"t know how to write it. I"m a little curious.
is inside >, ^, what does 0xff mean?
JS

Mar.19,2021

^ is the bit operator XOR . This is the calculation of CRC32 CAPTCHA, which really requires bit operations.
its truth table is

A  ^   B    OUT
1      0     1
0      1     1
0      0     0
1      1     0

Note that it is bitwise, and only if the corresponding bit matches the above truth table, the corresponding bit is set.
for example, for A=0XF , that is, binary numbers (1111) , B=0XA that is, binary numbers (1010)
Centra ^ B , then C=0x5 that is, binary numbers (0101)

is an unsigned right shift operation, which moves the symbol bits together, and the high position complement 0


'>'is the displacement operator of js (unsigned):
1:
10>>>1
10 1010
 0101
 5
'^'is the js interior operation XOR XOR

the processing is as follows:
(1) True ^ false = True
(2) false ^ True = True
(3) false ^ false = false
(4) True ^ True = false

2: 
10001 
30011 
xor00102
'0xFF' is the hexadecimal representation of the computer
The

bit operator, which operates at the bottom of the number (that is, the 32 digits that represent the number).


The

^ operator then looks at the values in the binary representation of the two expressions and performs a bitwise XOR operation. If and only if a bit of one expression is 1, the bit in the result is 1. Otherwise, the bit in the result is 0.

var result = expression1 ^ expression2;
    1001   = 0101          1100

'move to the right unsigned, ignore the symbolic bits, and the spaces are filled with 0
& perform a bitwise "and" operation on each bit of the two 32-bit expressions. If both bits are 1, the result is 1. Otherwise, the result is 0.


bit operator, you haven't seen elevation 3 at a glance.


can you tell me about the vscode theme of the landlord? I can't find a light color theme with such a good color match. Thank you

Menu