Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript falsy values

// falsy values in javascript

1) false
2) 0, -0, 0n
3) null
4) undefined
5) NaN
6) "", '', `` // empty string
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #falsy #values
ADD COMMENT
Topic
Name
7+6 =