You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Such this, there are many other interface listed below in MDN.
172
173
[List of DOM Interface](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model#DOM_interfaces)
174
+
175
+
<aname=“equality”/>
176
+
177
+
#### Equality Comparison
178
+
179
+
JavaScript provides three different value-comparison operations:
180
+
1. Strictly equality (===)
181
+
182
+
triple equals (===) will do the same comparison (including the special handling for NaN, -0, and +0) but without type conversion, by simply always returning false if the types different.
183
+
184
+
```HTML
185
+
Values are not implicitly converted to the some other value. If the values have different types, values are considered differnt.
186
+
```
187
+
2. Abstract Equality (==)
188
+
189
+
double equals (==) will perform a type conversion when comparing two things, and will handle NaN, -0, and +0 specially to conform to IEEE 754 (so NaN != NaN, and -0 == +0);
190
+
191
+
3. Object.is
192
+
193
+
Object.is does not do type conversion and no special handling for NaN, -0, and +0 (it has the same behavior as === except on those special numeric values).
0 commit comments