Files

7 lines
518 B
Markdown
Raw Permalink Normal View History

2026-06-12 11:06:50 +02:00
# ==
The `==` operator compares two values for equality after performing type coercion if the types differ. For example, `"5" == 5` returns `true` because the string is converted to a number before comparison. This can produce surprising results and is generally avoided in favor of `===`.
2023-01-02 04:47:46 +04:00
Visit the following resources to learn more:
2026-06-12 11:06:50 +02:00
- [@article@Equality comparisons and sameness - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#same-value_equality_using_object.is)