I have seen that typescript often modify the original JavaScript operators to create their own operators. Why does this really happen?
The same doubt I have with the operator "or logical assignment '|'"
I have seen that typescript often modify the original JavaScript operators to create their own operators. Why does this really happen?
The same doubt I have with the operator "or logical assignment '|'"
'!!' operator is the same as '!' in TypeScript?
No. There is no !!
operator.
!!
is just two JavaScript !
operators in sequence.
The same doubt I have with the operator "or logical assignment '|'"
There is |
called Bitwise OR : https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators#Bitwise_OR
There is ||
called Logical OR :
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Logical_OR
Again they are the same as JavaScript