truthy statements js 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