Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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