💍falsy

only 7 "falsy" values in JS.

JSvaluetypeconversion ⟩ falsy

7 falsy values:(converts to false)

any other value is "truthy", and converts to true.

every value is either truthy or falsy

all objects are truthy (convert to true).

operator(s) that expect boolean operands will work with an operand of any type

Last updated