Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

null is true or false javascript

// https://developer.mozilla.org/en-US/docs/Glossary/Falsy#examples

// values that will bypass the 'if'-block:
if (false)
if (null)
if (undefined)
if (0)
if (-0)
if (0n)
if (NaN)
if ("")
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #null #true #false #javascript
ADD COMMENT
Topic
Name
4+6 =