Skip to content

Instantly share code, notes, and snippets.

@afshinm
Created March 5, 2013 08:48
Show Gist options
  • Save afshinm/5088874 to your computer and use it in GitHub Desktop.
Save afshinm/5088874 to your computer and use it in GitHub Desktop.
JavaScript false expressions

If you put these expressions in your condition (Or somehow the condition equals to one of these), you will get false in JavaScript:

  • false
  • undefined
  • null
  • 0
  • ""
  • NaN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment