JavaScript Logical Operators
!
除了一个惊叹号之外
还有双惊叹号
What is the !! (not not) operator in JavaScript?
会把它的true or false再反转
So !! is not an operator, it’s just the ! operator twice.
JavaScript Logical Operators
!
除了一个惊叹号之外
还有双惊叹号
What is the !! (not not) operator in JavaScript?
会把它的true or false再反转
So !! is not an operator, it’s just the ! operator twice.