Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

falsy values javascript

// JS Essentials: Falsy Values

false
undefined
null
NaN
0 or +0 or -0
"" or '' or `` (empty string)

// Everything else is truthy
Source by www.samanthaming.com #
 
PREVIOUS NEXT
Tagged: #falsy #values #javascript
ADD COMMENT
Topic
Name
6+5 =