Skip to content

Commit c2ce2d4

Browse files
committed
minor fixes
1 parent b057341 commit c2ce2d4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: 1-js/02-first-steps/09-comparison/article.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
# Comparisons
22

3-
We know many comparison operators from maths:
3+
We know many comparison operators from maths.
4+
5+
In JavaScript they are written like this:
46

57
- Greater/less than: <code>a &gt; b</code>, <code>a &lt; b</code>.
68
- Greater/less than or equals: <code>a &gt;= b</code>, <code>a &lt;= b</code>.
7-
- Equals: `a == b` (please note the double equals sign `=`. A single symbol `a = b` would mean an assignment).
8-
- Not equals. In maths the notation is <code>&ne;</code>, but in JavaScript it's written as an assignment with an exclamation sign before it: <code>a != b</code>.
9+
- Equals: `a == b`, please note the double equality sign `=` means the equality test, while a single one `a = b` means an assignment.
10+
- Not equals. In maths the notation is <code>&ne;</code>, but in JavaScript the it's written as <code>a != b</code>.
11+
12+
In this article we'll learn more about different types of comparisons, how JavaScript makes them, including important peculiarities.
913

1014
## Boolean is the result
1115

12-
Like all other operators, a comparison returns a value. In this case, the value is a boolean.
16+
All comparison operators return a boolean value:
1317

1418
- `true` -- means "yes", "correct" or "the truth".
1519
- `false` -- means "no", "wrong" or "not the truth".

0 commit comments

Comments
 (0)