Merge pull request #2592 from JackStaples/patch-2

Fix grammar
This commit is contained in:
Ilya Kantor 2021-05-13 13:15:28 +03:00 committed by GitHub
commit 57e7d67056
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ In JavaScript, objects have a special hidden property `[[Prototype]]` (as named
![prototype](object-prototype-empty.svg) ![prototype](object-prototype-empty.svg)
When we read a property from `object`, and it's missing, JavaScript automatically takes it from the prototype. In programming, such thing is called "prototypal inheritance". And soon we'll study many examples of such inheritance, as well as cooler language features built upon it. When we read a property from `object`, and it's missing, JavaScript automatically takes it from the prototype. In programming, this is called "prototypal inheritance". And soon we'll study many examples of such inheritance, as well as cooler language features built upon it.
The property `[[Prototype]]` is internal and hidden, but there are many ways to set it. The property `[[Prototype]]` is internal and hidden, but there are many ways to set it.