re: Coercion in JavaScript. VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Cool post, Uddesh! I have a note on this paragraph. console.log('100' === 100) // False In the case of triple equal, the result will be F...
 

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).

code of conduct - report abuse