Difference between == and === in JavaScript

Difference between == and === in JavaScript

===   ‘strict comparison’ means is the same type and equal
==       simply means equal

0==false   // true
0===false  // false, because they are of a different type
1==”1″     // true, auto type coercion
1===”1″    // false, because they are of a different type

Here I have explained Difference between == and === in JavaScript with example.

Leave a Reply