why do nonzero numbers equate to true if nonzero numbers are truthy?
For example, the following oddly prints.
'c == true is false'
if (c == true) {
console.log('c == true is true');
} else {
console.log('c == true is false');
}
To make sure I'm not crazy, I confirmed that c is truthy by running the following code chunk, which prints
'c is true'
if (c) {
console.log('c is true')
} else {
console.log('c is false');
}