javascript布尔值
JavaScript布尔值 (JavaScript Boolean)
Boolean is a data type that stores only two values: true and false.
布尔值是仅存储两个值的数据类型: true和false 。
Alternately, true is represented by 1 and false by 0. However, anything other than false is considered true. This means that if you define your false to be 0 everything other than 0 will be considered true. More accurately, a variable or an object having some value is treated as true and 0, NaN, empty string, undefined, null is treated as false.
或者, true表示为