Skip to content

Commit 01e87b5

Browse files
authored
Merge pull request #2118 from vsemozhetbyt/ch-1-2-8
Fix old link and excess line break in 1.2.8
2 parents 6ea208b + 8e7e13d commit 01e87b5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

1-js/02-first-steps/08-operators/4-fix-prompt/solution.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ let b = "2"; // prompt("Second number?", 2);
99
alert(a + b); // 12
1010
```
1111

12-
What we should do is to convert strings to numbers before `+`. For example, using `Number()` or
13-
prepending them with `+`.
12+
What we should do is to convert strings to numbers before `+`. For example, using `Number()` or prepending them with `+`.
1413

1514
For example, right before `prompt`:
1615

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Parentheses override any precedence, so if we're not satisfied with the default
180180
181181
There are many operators in JavaScript. Every operator has a corresponding precedence number. The one with the larger number executes first. If the precedence is the same, the execution order is from left to right.
182182
183-
Here's an extract from the [precedence table](https://developer.mozilla.org/en/JavaScript/Reference/operators/operator_precedence) (you don't need to remember this, but note that unary operators are higher than corresponding binary ones):
183+
Here's an extract from the [precedence table](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence) (you don't need to remember this, but note that unary operators are higher than corresponding binary ones):
184184

185185
| Precedence | Name | Sign |
186186
|------------|------|------|

0 commit comments

Comments
 (0)