From 60cb38dd82f6ed980b96bbd540fa91f31c58a6bc Mon Sep 17 00:00:00 2001 From: jeff-wolff Date: Sun, 2 Jul 2017 17:25:46 -0700 Subject: [PATCH 1/6] maintain consistency in example --- 1-js/02-first-steps/10-ifelse/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/10-ifelse/article.md b/1-js/02-first-steps/10-ifelse/article.md index 89dce435..37fb0ad0 100644 --- a/1-js/02-first-steps/10-ifelse/article.md +++ b/1-js/02-first-steps/10-ifelse/article.md @@ -143,7 +143,7 @@ For example: let accessAllowed = (age > 18) ? true : false; ``` -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: +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: ```js // the comparison operator "age > 18" executes first anyway From 327506528bfdf9066c6b7e2edcf4f25f680f7bc8 Mon Sep 17 00:00:00 2001 From: Dmitry Ivonin Date: Wed, 5 Jul 2017 17:50:10 +0300 Subject: [PATCH 2/6] One mistake is corrected The mistake of double 'we' --- 6-async/02-promise-basics/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6-async/02-promise-basics/article.md b/6-async/02-promise-basics/article.md index a8f072a8..bae64b37 100644 --- a/6-async/02-promise-basics/article.md +++ b/6-async/02-promise-basics/article.md @@ -96,7 +96,7 @@ let promise = new Promise(function(resolve, reject) { 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. -Also we if we call `resolve/reject` with more then one argument -- only the first argument is used, the next ones are ignored. +Also if we call `resolve/reject` with more then one argument -- only the first argument is used, the next ones are ignored. ```` ```smart header="Reject with `Error` objects" From 6432a5e4a95f21209cd9ed2f13cb59d631e4a877 Mon Sep 17 00:00:00 2001 From: Mohammad Rajabifard Date: Thu, 6 Jul 2017 15:51:17 +0430 Subject: [PATCH 3/6] Add missing charachter --- .../05-regexp-character-sets-and-ranges/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-regular-expressions/05-regexp-character-sets-and-ranges/article.md b/5-regular-expressions/05-regexp-character-sets-and-ranges/article.md index 01748937..90c890c7 100644 --- a/5-regular-expressions/05-regexp-character-sets-and-ranges/article.md +++ b/5-regular-expressions/05-regexp-character-sets-and-ranges/article.md @@ -97,7 +97,7 @@ In other words, all special characters are allowed except where they mean someth A dot `"."` inside square brackets means just a dot. The pattern `pattern:[.,]` would look for one of characters: either a dot or a comma. -In the example below the regexp `pattern:[-().^+]` looks for one of the characters `-().^`: +In the example below the regexp `pattern:[-().^+]` looks for one of the characters `-().^+`: ```js run // No need to escape From 1e44a05fd17b325e33b2c0de962f3c3ace3a444b Mon Sep 17 00:00:00 2001 From: Ming Hei Lau Date: Thu, 6 Jul 2017 16:44:47 -0700 Subject: [PATCH 4/6] typo --- 1-js/05-data-types/09-destructuring-assignment/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/09-destructuring-assignment/article.md b/1-js/05-data-types/09-destructuring-assignment/article.md index 701deb06..1eb37ebe 100644 --- a/1-js/05-data-types/09-destructuring-assignment/article.md +++ b/1-js/05-data-types/09-destructuring-assignment/article.md @@ -53,7 +53,7 @@ Unwanted elements of the array can also be thrown away via an extra comma: let [, , title] = ["Julius", "Caesar", "Consul", "of the Roman Republic"]; */!* -alert( title ); // Imperator +alert( title ); // Consul ``` 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. From 33c7a30b10f5adf7e7f3157bd7f32dde93a1d688 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Sat, 8 Jul 2017 12:39:28 +0300 Subject: [PATCH 5/6] minor --- 1-js/07-object-oriented-programming/09-class/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/07-object-oriented-programming/09-class/article.md b/1-js/07-object-oriented-programming/09-class/article.md index ebfcfad8..2cf4725e 100644 --- a/1-js/07-object-oriented-programming/09-class/article.md +++ b/1-js/07-object-oriented-programming/09-class/article.md @@ -319,7 +319,7 @@ class Article { let article = Article.createTodays(); -alert( articles.title ); // Todays digest +alert( article.title ); // Todays digest ``` 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. From e8154d07db4cc073917a0436cf894cf63be202dd Mon Sep 17 00:00:00 2001 From: Kurczok Date: Sat, 8 Jul 2017 17:27:05 +0200 Subject: [PATCH 6/6] Misspelled independent --- 1-js/04-object-basics/01-object/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/04-object-basics/01-object/article.md b/1-js/04-object-basics/01-object/article.md index 18816211..97d8a22e 100644 --- a/1-js/04-object-basics/01-object/article.md +++ b/1-js/04-object-basics/01-object/article.md @@ -459,7 +459,7 @@ let message = "Hello!"; let phrase = message; ``` -As a result we have two independant variables, each one is storing the string `"Hello!"`. +As a result we have two independent variables, each one is storing the string `"Hello!"`. ![](variable-copy-value.png)