Charlie Harvey

#725

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