Merge pull request #882 from LordLexLutheran/patch-1

Small Grammatical Error - article.md "Class"
This commit is contained in:
Ilya Kantor 2019-04-02 08:52:07 +03:00 committed by GitHub
commit 8925505bd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ It's easy to see that these two examples are alike. Be sure to note that methods
So, what exactly is a `class`? We may think that it defines a new language-level entity, but that would be wrong.
In Javascript, a class is a kind of a function.
In Javascript, a class is a kind of function.
The definition `class User {...}` creates a function under the same name and puts the methods into `User.prototype`. So the structure is similar.