From edf1a45e0a3cae0ab8a94aa9a64d18ec8f29aa0c Mon Sep 17 00:00:00 2001 From: luc4leone Date: Wed, 17 Jul 2019 09:57:01 +0200 Subject: [PATCH] Fix the numbers in an ordered list, from 1. 3. to 1. 2., and moved the single child bullet point up to his numbered parent --- 1-js/09-classes/01-class/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/1-js/09-classes/01-class/article.md b/1-js/09-classes/01-class/article.md index 1fa503cc..43b03403 100644 --- a/1-js/09-classes/01-class/article.md +++ b/1-js/09-classes/01-class/article.md @@ -85,9 +85,9 @@ 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 if we don't write such method). -3. Stores all methods, such as `sayHi`, in `User.prototype`. + +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 if we don't write such method). +2. 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 a `new User` object has access to class methods.