Created
April 6, 2018 06:19
-
-
Save MikaelElkiaer/ec1b38e98a2d6fcf156d5410b41fae37 to your computer and use it in GitHub Desktop.
JavaScript null and 0 comparison
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> node | |
> 0 > null | |
false | |
> 0 < null | |
false | |
> 0 == null | |
false | |
> 0 >= null | |
true | |
> 0 <= null | |
true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment