!
is a *logical* not, not a bitwise not
This commit is contained in:
parent
39fb7a648b
commit
f6115bf2db
1 changed files with 1 additions and 1 deletions
|
@ -300,4 +300,4 @@ alert( Boolean("non-empty string") ); // true
|
|||
alert( Boolean(null) ); // false
|
||||
```
|
||||
|
||||
The precedence of NOT `!` is the highest of all bitwise operators, so it always executes first, before any `&&`, `||`.
|
||||
The precedence of NOT `!` is the highest of all logical operators, so it always executes first, before any `&&`, `||`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue