Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript falsy values

if (true)
if ({})
if ([])
if (42)
if ("0")
if ("false")
if (new Date())
if (-42)
if (12n)
if (3.14)
if (-3.14)
if (Infinity)
if (-Infinity)
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #falsy #values
ADD COMMENT
Topic
Name
3+7 =