how to check for truthy values in javascript code example
Example: javascript truthy
// Truthy values:
// All values are truthy, BUT (excluding) the following:
0
''
undefined
null
NaN
// Truthy values:
// All values are truthy, BUT (excluding) the following:
0
''
undefined
null
NaN