Merge pull request #375 from cotejp/patch-1

Reversed sentence for better understanding
This commit is contained in:
Ilya Kantor 2018-03-03 09:30:33 +03:00 committed by GitHub
commit 713fe2d6f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ So, what exactly does `class` do? We may think that it defines a new language-le
The `class User {...}` here actually does two things:
1. Declares a variable `User` that references the function named `"constructor"`.
2. Puts into `User.prototype` methods listed in the definition. Here it includes `sayHi` and the `constructor`.
2. Puts methods listed in the definition into `User.prototype`. Here, it includes `sayHi` and the `constructor`.
Here's the code to dig into the class and see that: