Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

falsy values in js

// 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: #falsy #values #js
ADD COMMENT
Topic
Name
7+6 =