javascript is null truthy code example
Example 1: javascript falsy
// Falsy values:
0
''
undefined
null
NaN
Example 2: javascript truthy
// Truthy values:
// All values are truthy, BUT (excluding) the following:
0
''
undefined
null
NaN
// Falsy values:
0
''
undefined
null
NaN
// Truthy values:
// All values are truthy, BUT (excluding) the following:
0
''
undefined
null
NaN