Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikaelElkiaer/ec1b38e98a2d6fcf156d5410b41fae37 to your computer and use it in GitHub Desktop.
Save MikaelElkiaer/ec1b38e98a2d6fcf156d5410b41fae37 to your computer and use it in GitHub Desktop.
JavaScript null and 0 comparison
> 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