DEV Community

Discussion on: Coercion in JavaScript.

Collapse
 
azarouamine profile image
AzarouAmine • Edited

The triple equal checks both the value and the type, so in this example's case, the values are equal but the types aren't, so the output is false (false(type) & true(value) => 0 & 1 == 0 => false).