Not
bitwise non, symbol is wavy line ~
function bar all bits of the binary number are non-operational, the corresponding decimal result is a negative value for the original 10 binary number and minus 1
Other operators feel less common, bitwise AND (&), bitwise OR (|), left (<<), Shift Right (>>), unsigned Right shift (>>>)
XOR (^), wherein the 10 binary number can be considered when the left to move, right to move with caution, symbolic problems
---------------------------------------------------------------------------------------------------------------
Logical operators:
and
and operation, symbol for &&
That is true when both are true and the rest is false.
This can be written when you use the properties of an object in general.
obj&&obj.attr;
Indicates that the obj.attr is executed if obj exists
FN&&FN ();
The general callback function likes to write like this
Or
Or, as long as one is true, the symbol | |
Setting default values can be used this way
var a=x| | 1;
If x is not defined, it is the default value
JavaScript bitwise operators