#725 Anon Explanation Here is an explanation to why js> true===1 false As you know: js> typeof true "boolean" js> typeof 1 "number" The === operator requires the expressions checked to have the same value as well as the same type. Since true is a Boolean while 1 is a Number, this evaluates to false. However: js> true == 1 true :D url:Javascript: the weird parts 2015-08-04
Here is an explanation to why
js> true===1
As you know:
js> typeof true
js> typeof 1
The === operator requires the expressions checked to have the same value as well as the same type. Since true is a Boolean while 1 is a Number, this evaluates to false. However:
js> true == 1
:D