1
JavaScriptIntermediate#this#functions
Falsy values are false, 0, -0, 0n, '', null, undefined and NaN. Everything else is truthy, including '0', 'false', [] and {}.
if ([]) console.log('empty array is truthy'); // prints
Boolean('0'); // true
Boolean(NaN); // false