Merge pull request #543 from MarekStocki/patch-1

`!` is a *logical* not, not a bitwise not
This commit is contained in:
Ilya Kantor 2018-10-05 11:26:46 +03:00 committed by GitHub
commit b6d0c8fd69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,4 +300,4 @@ alert( Boolean("non-empty string") ); // true
alert( Boolean(null) ); // false 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 `&&`, `||`.