I don't understand why this happens, can you explain?

Is it that 1 === 1 === 1 is basically:

(1 === 1) === 1

true === 1

false

Meaning boolean is not a integer, or 1 casted to boolean is not "true"?

Reply to this note

Please Login to reply.

Discussion

Yeap, 1 and true have different types. One is a number, the other is a boolean. But the `===` op is checking for the same type.