From 7ed68a023293000fb746dd5bc68f05979b27214a Mon Sep 17 00:00:00 2001 From: Jerald Vinfrank <46400789+JeraldVin@users.noreply.github.com> Date: Thu, 2 Feb 2023 23:21:29 +0530 Subject: [PATCH 1/5] fix: grammar --- 2-ui/3-event-details/7-keyboard-events/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/3-event-details/7-keyboard-events/article.md b/2-ui/3-event-details/7-keyboard-events/article.md index 12fe632016..0d223729ad 100644 --- a/2-ui/3-event-details/7-keyboard-events/article.md +++ b/2-ui/3-event-details/7-keyboard-events/article.md @@ -24,7 +24,7 @@ Try different key combinations in the text field. ## Keydown and keyup -The `keydown` events happens when a key is pressed down, and then `keyup` -- when it's released. +The `keydown` event happens when a key is pressed down, and then `keyup` -- when it's released. ### event.code and event.key From 225a80eeb6d446f80bc85a63e6ab7e61127d0096 Mon Sep 17 00:00:00 2001 From: Jerald Vinfrank <46400789+JeraldVin@users.noreply.github.com> Date: Thu, 2 Feb 2023 23:27:47 +0530 Subject: [PATCH 2/5] fix: typo --- 1-js/04-object-basics/09-object-toprimitive/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/04-object-basics/09-object-toprimitive/article.md b/1-js/04-object-basics/09-object-toprimitive/article.md index 0a16b53998..4443c50019 100644 --- a/1-js/04-object-basics/09-object-toprimitive/article.md +++ b/1-js/04-object-basics/09-object-toprimitive/article.md @@ -3,7 +3,7 @@ What happens when objects are added `obj1 + obj2`, subtracted `obj1 - obj2` or printed using `alert(obj)`? -JavaScript doesn't allow you to customize how operators work on objects. Unlike some other programming languages, such as Ruby or C++, we can't implement a special object method to handle addition (or other operators). +JavaScript doesn't allow you to customize how operators work on objects. Unlike some other programming languages, such as Ruby or C++, we can't implement a special object method to handle addition (or other operations). In case of such operations, objects are auto-converted to primitives, and then the operation is carried out over these primitives and results in a primitive value. From d00a9ae0e6debe245b6da84f9aa1151dc7db3784 Mon Sep 17 00:00:00 2001 From: Jerald Vinfrank <46400789+JeraldVin@users.noreply.github.com> Date: Sat, 4 Feb 2023 18:38:45 +0530 Subject: [PATCH 3/5] fix: correct sentence meaning in 'Closure' section --- 1-js/06-advanced-functions/03-closure/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/03-closure/article.md b/1-js/06-advanced-functions/03-closure/article.md index cb43a7968f..3f6602b6f5 100644 --- a/1-js/06-advanced-functions/03-closure/article.md +++ b/1-js/06-advanced-functions/03-closure/article.md @@ -189,7 +189,7 @@ Rectangles on the right-hand side demonstrate how the global Lexical Environment - Initially, they are in the "Uninitialized" state. That's a special internal state, it means that the engine knows about the variable, but it cannot be referenced until it has been declared with `let`. It's almost the same as if the variable didn't exist. 2. Then `let phrase` definition appears. There's no assignment yet, so its value is `undefined`. We can use the variable from this point forward. 3. `phrase` is assigned a value. -4. `phrase` changes the value. +4. The value of `phrase` is changed. Everything looks simple for now, right? From 5632d4e38fe1ce5be40ef847526e6a65e1ce07af Mon Sep 17 00:00:00 2001 From: Jerald Vinfrank <46400789+JeraldVin@users.noreply.github.com> Date: Sat, 4 Feb 2023 19:08:24 +0530 Subject: [PATCH 4/5] fix: correct form.elements description --- 2-ui/4-forms-controls/1-form-elements/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/4-forms-controls/1-form-elements/article.md b/2-ui/4-forms-controls/1-form-elements/article.md index f22518d9d9..eee81c586e 100644 --- a/2-ui/4-forms-controls/1-form-elements/article.md +++ b/2-ui/4-forms-controls/1-form-elements/article.md @@ -15,7 +15,7 @@ document.forms.my; // the form with name="my" document.forms[0]; // the first form in the document ``` -When we have a form, then any element is available in the named collection `form.elements`. +When we have a form, then all control elements within the `
@@ -110,7 +110,7 @@ That's easy to see in an example: // form.elements updated the name: alert(form.elements.login); // undefined - alert(form.elements.username); // input + alert(form.elements.username); // [object HTMLInputElement] *!* // form allows both names: the new one and the old one @@ -144,7 +144,7 @@ For instance: let login = form.login; // element -> form - alert(login.form); // HTMLFormElement + alert(login.form); // [object HTMLFormElement] */!* ``` @@ -269,6 +269,9 @@ Option elements have properties: `option.index` : The number of the option among the others in its `