From b7b073be1a259cb1ea37519ba20e702c8f50d70e Mon Sep 17 00:00:00 2001 From: Sergey Kopylov Date: Thu, 25 Apr 2019 17:14:45 +0300 Subject: [PATCH 1/4] Update article.md --- 1-js/02-first-steps/04-variables/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/04-variables/article.md b/1-js/02-first-steps/04-variables/article.md index dcf8a9ca1f..8fe13a970a 100644 --- a/1-js/02-first-steps/04-variables/article.md +++ b/1-js/02-first-steps/04-variables/article.md @@ -157,7 +157,7 @@ let userName; let test123; ``` -When the name contains multiple words, [camelCase](https://en.wikipedia.org/wiki/CamelCase) is commonly used. That is: words go one after another, each word starting with a capital letter: `myVeryLongName`. +When the name contains multiple words, [camelCase](https://en.wikipedia.org/wiki/CamelCase) is commonly used. That is: words go one after another, each word except first starting with a capital letter: `myVeryLongName`. What's interesting -- the dollar sign `'$'` and the underscore `'_'` can also be used in names. They are regular symbols, just like letters, without any special meaning. From 04487f832f49a688c8d647864c3e83b6065bff74 Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Fri, 26 Apr 2019 10:04:59 +0200 Subject: [PATCH 2/4] Update article.md Typo: F.property => F.prototype --- 1-js/08-prototypes/02-function-prototype/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/08-prototypes/02-function-prototype/article.md b/1-js/08-prototypes/02-function-prototype/article.md index 669a9a6589..c08667c7b7 100644 --- a/1-js/08-prototypes/02-function-prototype/article.md +++ b/1-js/08-prototypes/02-function-prototype/article.md @@ -43,7 +43,7 @@ On the picture, `"prototype"` is a horizontal arrow, meaning a regular property, ```smart header="`F.prototype` only used at `new F` time" `F.prototype` property is only used when `new F` is called, it assigns `[[Prototype]]` of the new object. After that, there's no connection between `F.prototype` and the new object. Think of it as a "one-time gift". -If, after the creation, `F.prototype` property changes (`F.property = `), then new objects created by `new F` will have another object as `[[Prototype]]`, but already existing objects keep the old one. +If, after the creation, `F.prototype` property changes (`F.prototype = `), then new objects created by `new F` will have another object as `[[Prototype]]`, but already existing objects keep the old one. ``` ## Default F.prototype, constructor property From 3b20808335aa07628a02a7bab29cb49c4132d1ad Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Fri, 26 Apr 2019 10:37:18 +0200 Subject: [PATCH 3/4] Update article.md --- 1-js/09-classes/01-class/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/09-classes/01-class/article.md b/1-js/09-classes/01-class/article.md index 16ff9c6663..d78d009114 100644 --- a/1-js/09-classes/01-class/article.md +++ b/1-js/09-classes/01-class/article.md @@ -86,7 +86,7 @@ alert(typeof User); // function What `class User {...}` construct really does is: 1. Creates a function named `User`, that becomes the result of the class declaration. - - The function code is taken from the `constructor` method (assumed empty is we don't write such method). + - The function code is taken from the `constructor` method (assumed empty if we don't write such method). 3. Stores all methods, such as `sayHi`, in `User.prototype`. Afterwards, for new objects, when we call a method, it's taken from the prototype, just as described in the chapter . So `new User` object has access to class methods. From 19223ae762f03cdff4e83f6f963f4f427af93847 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Fri, 26 Apr 2019 14:30:36 +0200 Subject: [PATCH 4/4] minor --- 1-js/02-first-steps/06-type-conversions/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/06-type-conversions/article.md b/1-js/02-first-steps/06-type-conversions/article.md index 95d0fa46b8..6ac695e844 100644 --- a/1-js/02-first-steps/06-type-conversions/article.md +++ b/1-js/02-first-steps/06-type-conversions/article.md @@ -1,6 +1,6 @@ # Type Conversions -Most of the time, operators and functions automatically convert the values given to them to the right type. This is called "type conversion". +Most of the time, operators and functions automatically convert the values given to them to the right type. For example, `alert` automatically converts any value to a string to show it. Mathematical operations convert values to numbers.