Any value in Javascript can be considered a boolean if necessary.
Example:
if (2) { console.log("Is 2 Truthy?") }
The most obvious place is in if conditions.
if
false
0
""
null
undefined
NaN
-0
0n
previous
next