When using boolean coercion, the following values are considered “falsy”:
false0"" (empty string)nullundefinedNaN (not a number, e.g. 0/0)document.all¹ (browser context)Everything else is considered “truthy”.
Abstract equality inequality and type conversion
NaN Property of the Global Object
Short-circuiting in boolean operators