falsy
only 7 "falsy" values in JS.
Last updated
Was this helpful?
only 7 "falsy" values in JS.
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ falsy
7 falsy values:(converts to false)
false
, 0
, , null
, , , ""
(empty string).
any other value is "truthy", and converts to true.
operator(s) that expect operands will work with an operand of any type