Skip to content

Commit e833ecb

Browse files
Merge pull request #5 from Kurczok/patch-1
Patch 1
2 parents 02bf4e4 + e8154d0 commit e833ecb

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

1-js/02-first-steps/10-ifelse/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ For example:
143143
let accessAllowed = (age > 18) ? true : false;
144144
```
145145

146-
Technically, we can omit parentheses around `age > 14`. The question mark operator has a low precedence. It executes after the comparison `>`, so that'll do the same:
146+
Technically, we can omit parentheses around `age > 18`. The question mark operator has a low precedence. It executes after the comparison `>`, so that'll do the same:
147147

148148
```js
149149
// the comparison operator "age > 18" executes first anyway

1-js/04-object-basics/01-object/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ let message = "Hello!";
459459
let phrase = message;
460460
```
461461
462-
As a result we have two independant variables, each one is storing the string `"Hello!"`.
462+
As a result we have two independent variables, each one is storing the string `"Hello!"`.
463463
464464
![](variable-copy-value.png)
465465

1-js/05-data-types/09-destructuring-assignment/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Unwanted elements of the array can also be thrown away via an extra comma:
5353
let [, , title] = ["Julius", "Caesar", "Consul", "of the Roman Republic"];
5454
*/!*
5555
56-
alert( title ); // Imperator
56+
alert( title ); // Consul
5757
```
5858
5959
In the code above, the first and second elements of the array are skipped, the third one is assigned to `title`, and the rest is also skipped.

1-js/07-object-oriented-programming/09-class/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class Article {
319319

320320
let article = Article.createTodays();
321321

322-
alert( articles.title ); // Todays digest
322+
alert( article.title ); // Todays digest
323323
```
324324

325325
Now every time we need to create a todays digest, we can call `Article.createTodays()`. Once again, that's not a method of an article, but a method of the whole class.

5-regular-expressions/05-regexp-character-sets-and-ranges/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ In other words, all special characters are allowed except where they mean someth
9797

9898
A dot `"."` inside square brackets means just a dot. The pattern `pattern:[.,]` would look for one of characters: either a dot or a comma.
9999

100-
In the example below the regexp `pattern:[-().^+]` looks for one of the characters `-().^`:
100+
In the example below the regexp `pattern:[-().^+]` looks for one of the characters `-().^+`:
101101

102102
```js run
103103
// No need to escape

6-async/02-promise-basics/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ let promise = new Promise(function(resolve, reject) {
9696
9797
The idea is that a job done by the executor may have only one result or an error. In programming, there exist other data structures that allow many "flowing" results, for instance streams and queues. They have their own advantages and disadvantages versus promises. They are not supported by JavaScript core and lack certain language features that promises provide, we don't cover them here to concentrate on promises.
9898
99-
Also we if we call `resolve/reject` with more then one argument -- only the first argument is used, the next ones are ignored.
99+
Also if we call `resolve/reject` with more then one argument -- only the first argument is used, the next ones are ignored.
100100
````
101101

102102
```smart header="Reject with `Error` objects"

0 commit comments

Comments
 (0)