Merge pull request #375 from cotejp/patch-1
Reversed sentence for better understanding
This commit is contained in:
commit
713fe2d6f8
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
The `class User {...}` here actually does two things:
|
||||||
|
|
||||||
1. Declares a variable `User` that references the function named `"constructor"`.
|
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:
|
Here's the code to dig into the class and see that:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue