From 1bf2e8c360f7f0ae589ecd9b18df481541eaa27a Mon Sep 17 00:00:00 2001 From: Mohammad Khalid Hussain Date: Wed, 14 Jun 2017 23:25:33 +0800 Subject: [PATCH 1/6] Fixed a typo retured => returned --- 1-js/02-first-steps/07-operators/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/07-operators/article.md b/1-js/02-first-steps/07-operators/article.md index e679df61..ff171ea0 100644 --- a/1-js/02-first-steps/07-operators/article.md +++ b/1-js/02-first-steps/07-operators/article.md @@ -268,7 +268,7 @@ Operators `++` and `--` can be placed both after and before the variable. Both of these records do the same: increase `i` by `1`. -Is there any difference? Yes, but we can only see it if we use the retured value of `++/--`. +Is there any difference? Yes, but we can only see it if we use the returned value of `++/--`. Let's clarify. As we know, all operators return a value. Increment/decrement is not an exception here. The prefix form returns the new value, while the postfix form returns the old value (prior to increment/decrement). From 627e3f8f1d3401a111b0d5ea1f9ee063f81fc79c Mon Sep 17 00:00:00 2001 From: Xin Yue Date: Wed, 14 Jun 2017 12:01:03 -0700 Subject: [PATCH 2/6] Create article.md --- 2-ui/1-document/06-dom-attributes-and-properties/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/06-dom-attributes-and-properties/article.md b/2-ui/1-document/06-dom-attributes-and-properties/article.md index 8a0f1d6e..bdfb51f0 100644 --- a/2-ui/1-document/06-dom-attributes-and-properties/article.md +++ b/2-ui/1-document/06-dom-attributes-and-properties/article.md @@ -10,7 +10,7 @@ But the attribute-property mapping is not one-to-one! In this chapter we'll pay ## DOM properties -We've already seen built-in DOM properties. There's a lot. But technically no one limits us, and if it's not enough -- we can add own own. +We've already seen built-in DOM properties. There's a lot. But technically no one limits us, and if it's not enough -- we can add our own. DOM nodes are regular JavaScript objects. We can alter them. From 92d02d9c22e337f9ce159aa8f2c6786d8c38045a Mon Sep 17 00:00:00 2001 From: Vikas Date: Wed, 14 Jun 2017 23:54:05 -0500 Subject: [PATCH 3/6] Fix minor typo in While-For chapter if should have been it! --- 1-js/02-first-steps/12-while-for/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/12-while-for/article.md b/1-js/02-first-steps/12-while-for/article.md index 41ae8c08..ad326e77 100644 --- a/1-js/02-first-steps/12-while-for/article.md +++ b/1-js/02-first-steps/12-while-for/article.md @@ -235,7 +235,7 @@ The combination: "infinite loop + `break` as needed" is great for situations whe ## Continue to the next iteration [#continue] -The `continue` directive is a "lighter version" of `break`. It doesn't stop the whole loop. Instead if stops the current iteration and forces the loop to start a new one (if the condition allows). +The `continue` directive is a "lighter version" of `break`. It doesn't stop the whole loop. Instead it stops the current iteration and forces the loop to start a new one (if the condition allows). We can use it if we're done on the current iteration and would like to move on to the next. From 0966dd4bd4f98b5333af75968e2ef9db9ecb0c6a Mon Sep 17 00:00:00 2001 From: Camille Menou Date: Thu, 15 Jun 2017 12:47:29 +0200 Subject: [PATCH 4/6] Correction in a sentence --- 2-ui/1-document/05-basic-dom-node-properties/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/05-basic-dom-node-properties/article.md b/2-ui/1-document/05-basic-dom-node-properties/article.md index ec51401f..bd05a7e0 100644 --- a/2-ui/1-document/05-basic-dom-node-properties/article.md +++ b/2-ui/1-document/05-basic-dom-node-properties/article.md @@ -472,7 +472,7 @@ Each DOM node belongs to a certain class. The classes form a hierarchy. The full Main DOM node properties are: `nodeType` -: Node type. We can get it from the DOM object class, but often we need just to see is it a text or element node. The `nodeType` property is good for that. It has numeric values, most important are: `1` -- for elements,`3` -- for text nodes. Read-only. +: Node type. We can get it from the DOM object class, but often we need just to see if it is a text or element node. The `nodeType` property is good for that. It has numeric values, most important are: `1` -- for elements,`3` -- for text nodes. Read-only. `nodeName/tagName` : For elements, tag name (uppercased unless XML-mode). For non-element nodes `nodeName` describes what is it. Read-only. From 654f5dbdda21b18cc8fc1fe7ccf86a5ec1857666 Mon Sep 17 00:00:00 2001 From: Camille Menou Date: Thu, 15 Jun 2017 14:55:16 +0200 Subject: [PATCH 5/6] Conjugation correction "So there exist" instead of "So there exists" --- 2-ui/1-document/07-modifying-document/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/07-modifying-document/article.md b/2-ui/1-document/07-modifying-document/article.md index d18a05d9..adef6f9f 100644 --- a/2-ui/1-document/07-modifying-document/article.md +++ b/2-ui/1-document/07-modifying-document/article.md @@ -153,7 +153,7 @@ These methods are "old school": they exist from the ancient times and we can mee For instance, how to insert *html* if we have it as a string? Or, given a node, how to insert another node *before* it? Of course, all that is doable, but not in an elegant way. -So there exist two other sets of insertion methods to handle all cases easily. +So there exists two other sets of insertion methods to handle all cases easily. ### prepend/append/before/after From dbcfaf63515dbea3dc9012d36fa78dab6a12cfd5 Mon Sep 17 00:00:00 2001 From: Nicolas Larose Date: Thu, 15 Jun 2017 12:26:49 -0400 Subject: [PATCH 6/6] Create article.md --- 1-js/02-first-steps/14-function-basics/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/14-function-basics/article.md b/1-js/02-first-steps/14-function-basics/article.md index 742aef2d..4c5964e7 100644 --- a/1-js/02-first-steps/14-function-basics/article.md +++ b/1-js/02-first-steps/14-function-basics/article.md @@ -79,7 +79,7 @@ function showMessage() { alert(message); } -showMessage(); // Hello, my name is John +showMessage(); // Hello, John ``` The function has full access to the outer variable. It can modify it as well.