Skip to content

Instantly share code, notes, and snippets.

@mkuklis
Created June 13, 2011 04:46
Show Gist options
  • Save mkuklis/1022325 to your computer and use it in GitHub Desktop.
Save mkuklis/1022325 to your computer and use it in GitHub Desktop.
falsy values in JavaScript
6 falsy values in JS:
- false
- null
- undefined
- '' // empty string
- 0 // number 0
- NaN
all other values are truthy (including "false")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment