diff --git a/1-js/02-first-steps/08-comparison/article.md b/1-js/02-first-steps/08-comparison/article.md index ed0034fe..c213c346 100644 --- a/1-js/02-first-steps/08-comparison/article.md +++ b/1-js/02-first-steps/08-comparison/article.md @@ -4,7 +4,7 @@ Many comparison operators we know from maths: - Greater/less than: a > b, a < b. - Greater/less than or equals: a >= b, a <= b. -- Equality check is written as `a == b` (please note the double equation sign `'='`. A single symbol `a = b` would mean an assignment). +- Equality check is written as `a == b` (please note the double equation sign `=`. A single symbol `a = b` would mean an assignment). - Not equals. In maths the notation is , in JavaScript it's written as an assignment with an exclamation sign before it: a != b. [cut] @@ -108,7 +108,7 @@ From JavaScript's standpoint that's quite normal. An equality check converts usi ## Strict equality -A regular equality check `"=="` has a problem. It cannot differ `0` from `false`: +A regular equality check `==` has a problem. It cannot differ `0` from `false`: ```js run alert( 0 == false ); // true @@ -146,7 +146,7 @@ There's a non-intuitive behavior when `null` or `undefined` are compared with ot For a strict equality check `===` -: These values are different, because each of them belong to a separate type of it's own. +: These values are different, because each of them belongs to a separate type of its own. ```js run alert( null === undefined ); // false