Differences of JavaScript With Python
Expecting Loose ComparisonIn regular comparison, data type does not matter. This if statement returns true:
var x = 10;var y = “10”;if (x == y)
In strict comparison, data type does matter. This if statement returns false:
var x = 10;var y = “10”;if (x === y)
It is a common mistake to forget that ...