Skip to content

Commit

Permalink
Merge pull request javascript-tutorial#375 from cotejp/patch-1
Browse files Browse the repository at this point in the history
Reversed sentence for better understanding
  • Loading branch information
iliakan authored Mar 3, 2018
2 parents ef12c34 + 296af70 commit 713fe2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1-js/07-object-oriented-programming/09-class/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 713fe2d

Please sign in to comment.