Which statement about truthy and falsy values in JavaScript is correct?
There are exactly six falsy values in JavaScript: false, 0, '' (empty string), null, undefined, and NaN. Every other value is considered truthy, including all objects and arrays (even empty ones), all non-empty strings (including '0', 'false'), and all functions. This distinction is critical for understanding how conditional statements work in JavaScript. When a value is used in a boolean context (like in an if statement), JavaScript implicitly converts it to true or false based on these rules, rather than checking if it's specifically the boolean true or false.