Change location for data files
This commit is contained in:
1 parent
b741a0e1ee
commit
b6a0255f12
2772 files changed
+30
-30
No files matched your search
+8
@@ -0,0 +1,8 @@
|
||||
# isLooselyEqual
|
||||
|
||||
[isLooselyEqual](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality) checks whether its two operands are equal, returning a `Boolean` result. It attempts to convert and compare operands that are of different types.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [ Loosely Equality (==) Operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality)
|
||||
- [Comparison - javascript.info](https://javascript.info/comparison)
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
# isStrictlyEqual
|
||||
|
||||
[isStrictlyEqual](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality) checks whether its two operands are equal, returning a `Boolean` result. It always considers operands of different types to be different.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [ Strictly Equality (===) Operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality)
|
||||
- [Comparison - javascript.info](https://javascript.info/comparison)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
# Same value zero
|
||||
|
||||
[SameValueZero](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#same-value-zero_equality) equality determines whether two values are functionally identical in all contexts with +0 and -0 are also considered equal.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [ Same-value-zero equality](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#same-value-zero_equality)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
# Same value
|
||||
|
||||
[SameValue](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#same-value_equality_using_object.is) equality determines whether two values are functionally identical in all contexts.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [ Same-value equality using Object.is()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#same-value_equality_using_object.is)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
# Equality algorithms
|
||||
|
||||
Equality algorithms are used to perform equality comparisons of values or variables in JavaScript. Each equality algorithm works slightly differently, and the one you use depends on the type of comparison you want to make.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [Which JavaScript equality algorithm should you use?](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness)
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
# Value Comparison Operators
|
||||
|
||||
In javascript, the `==` operator does the type conversion of the operands before comparison, whereas the `===` operator compares the values and the data types of the operands. The `Object.is()` method determines whether two values are the same value: `Object.is(value1, value2)`.
|
||||
|
||||
`Object.is()` is not equivalent to the `==` operator. The `==` operator applies various coercions to both sides (if they are not the same type) before testing for equality (resulting in such behavior as `"" == false` being `true`), but `Object.is()` doesn't coerce either value.
|
||||
|
||||
`Object.is()` is also not equivalent to the `===` operator. The only difference between `Object.is()` and `===` is in their treatment of signed zeros and `NaN` values. The `===` operator (and the `==` operator) treats the number values `-0` and `+0` as equal but treats `NaN` as not equal to each other.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [The Difference Between == and === in Javascript](https://www.scaler.com/topics/javascript/difference-between-double-equals-and-triple-equals-in-javascript/)
|
||||
- [Equality comparisons and sameness - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#same-value_equality_using_object.is)
|
||||
@@ -0,0 +1,8 @@
|
||||
# Equality Comparisons
|
||||
|
||||
Comparison operators are used in logical statements to determine equality or difference between variables or values. Comparison operators can be used in conditional statements to compare values and take action depending on the result.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [JavaScript Comparisons](https://www.w3schools.com/js/js_comparisons.asp)
|
||||
- [JavaScript Equality Operators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#equality_operators)
|
||||
Reference in new issue
Block a user