Fixes the `===` operator format (#3108)

Displays it in code format so that it is appears the same as the other operators.
pull/3089/merge
Chandrashekhar R 2 years ago committed by GitHub
parent 1f7554df5b
commit c11a28a034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/roadmaps/106-javascript/content/105-javascript-equality-comparisons/101-value-comparison-operators.md

@ -1,6 +1,6 @@
# 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)`.
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.

Loading…
Cancel
Save