Skip to content

Instantly share code, notes, and snippets.

@afshinm
Created March 5, 2013 08:48
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