with "= =", if the two value types are different, they may be equal because the "= =" is converted by default, and the conversion rules are more complex:A , if one is null and one is undefined, then [equal]. B, if one is a string, one is a numeric value, the string is converted to a numeric value and then compared. C, if any value is true, convert it to 1 and then compare it to 0 if either value is false. D, if one is an object and the other is a numeric or string, convert the object to the value of the underlying type and then compare it. The object is converted to the underlying type, using its ToString or ValueOf method. JS Core built-in class, will try to valueof before ToString, the exception is that date,date is using the ToString conversion. with "= = =", the types and values of two values must be equal, they are equal, and "= = =" does not convert data types when making comparisons.
Ten = = "Ten" // return True// return False
It is recommended that you never use "= =".
The difference between a JavaScript's conditional expression "= =" (equals) and "= = =" (Strictly equal To)