Language concepts
Truthiness
False, undefined, null, signed numeric zeros, BigInt zero, NaN and the empty string are falsy. Other ordinary values are truthy, including empty ordinary objects and nonempty strings. The legacy browser document.all object is an exceptional case; ordinary object rules are unchanged.
Formal Syntax & Structure
javascript syntaxjavascript
Boolean(value)Working Example
Example Snippetjavascript
console.log(Boolean("0"));console.log(Boolean({}));