You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/09-comparison/article.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ In JavaScript they are written like this:
9
9
- Equals: `a == b`, please note the double equality sign `==` means the equality test, while a single one `a = b` means an assignment.
10
10
- Not equals. In maths the notation is <code>≠</code>, but in JavaScript it's written as <code>a != b</code>.
11
11
12
-
In this article we'll learn more about different types of comparisons, how JavaScript makes them, including important peculiarities.
12
+
In this article we'll learn more about different types of comparisons, how JavaScript makes them, including important peculiarities.
13
13
14
-
At the end you'll find a good recipe to avoid "javascript quirks"-related issues.
14
+
At the end you'll find a good recipe to avoid "JavaScript quirks"-related issues.
15
15
16
16
## Boolean is the result
17
17
@@ -57,7 +57,7 @@ The algorithm to compare two strings is simple:
57
57
4. Repeat until the end of either string.
58
58
5. If both strings end at the same length, then they are equal. Otherwise, the longer string is greater.
59
59
60
-
In the examples above, the comparison `'Z' > 'A'` gets to a result at the first step while the strings `"Glow"` and `"Glee"` are compared character-by-character:
60
+
In the examples above, the comparison `'Z' > 'A'` gets to a result at the first step while the strings `'Glow'` and `'Glee'` are compared character-by-character:
0 commit comments