From 3b20808335aa07628a02a7bab29cb49c4132d1ad Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Fri, 26 Apr 2019 10:37:18 +0200 Subject: [PATCH] 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 16ff9c66..d78d0091 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.