Skip to content

Commit 8b8f3f6

Browse files
authored
Merge pull request #354 from brentguf/comparisons
Comparisons chapter
2 parents 0c5b90c + 4b4c65a commit 8b8f3f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

1-js/02-first-steps/08-comparison/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Many comparison operators we know from maths:
44

55
- Greater/less than: <code>a &gt; b</code>, <code>a &lt; b</code>.
66
- Greater/less than or equals: <code>a &gt;= b</code>, <code>a &lt;= b</code>.
7-
- Equality check is written as `a == b` (please note the double equation sign `'='`. A single symbol `a = b` would mean an assignment).
7+
- Equality check is written as `a == b` (please note the double equation sign `=`. A single symbol `a = b` would mean an assignment).
88
- Not equals. In maths the notation is <code>&ne;</code>, in JavaScript it's written as an assignment with an exclamation sign before it: <code>a != b</code>.
99

1010
[cut]
@@ -108,7 +108,7 @@ From JavaScript's standpoint that's quite normal. An equality check converts usi
108108

109109
## Strict equality
110110

111-
A regular equality check `"=="` has a problem. It cannot differ `0` from `false`:
111+
A regular equality check `==` has a problem. It cannot differ `0` from `false`:
112112

113113
```js run
114114
alert( 0 == false ); // true
@@ -146,7 +146,7 @@ There's a non-intuitive behavior when `null` or `undefined` are compared with ot
146146

147147

148148
For a strict equality check `===`
149-
: These values are different, because each of them belong to a separate type of it's own.
149+
: These values are different, because each of them belongs to a separate type of its own.
150150

151151
```js run
152152
alert( null === undefined ); // false

0 commit comments

Comments
 (0)