10 == false // true
20 === false // false, because they are of a different type
31 == "1" // true, automatic type conversion for value only
41 === "1" // false, because they are of a different type
5null == undefined // true
6null === undefined // false
7'0' == false // true
8'0' === false // false
1(0 == '0') // true
2(0 === '0') // false
3
4('' == 0 ) // true, the string will implicitly be converted to an integer
5('' === 0 ) // false, no implicit cast is being made
6
1/**
2* In js :
3* == it convert the variable values to the same data type before performing comparison.
4* example : comparison between string and interger data type
5*/
6(5 == "5") // returns true
7
8// === it does not convert data type of variable before performing comparison.
9// example:
10(5 === "5") // return false
1false == 0 => true
2false === 0 => false
3
40 != false => false
50 !== false => true
6
1== Equal to (1 == 1, 1 == "1") // equal in value ("1" is a string)
2=== Equal value and equal type (1 === 1 but, 1 !== "1" // not equal type