In a browser console, entering 1===1 evaluates to true. Entering 1===1===1 evaluates to false.
1===1
true
1===1===1
false
I assume that this
The === operator doesn't just test equality, but also type equality. Since an integer is not a boolean, true === 1 is false.
===
true === 1
Compare:
true == 1; // true true === 1; // false
Example.