A boolean value is true or false. Every number is true other than 0, Every String is true other than an empty string.
// 0, null, nan, undefined are false values
// ‘0’, ‘ ’ are true
Double == check value not check type. …