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