Merge pull request #1112 from maurodibert/patch-64

Update article.md
This commit is contained in:
Ilya Kantor 2019-07-05 15:59:00 +03:00 committed by GitHub
commit 043d06f968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ So, if `Rabbit extends Animal`, then:
That's thoroughly explained in the chapter [](info:static-properties-methods#statics-and-inheritance).
But built-in classes are an exception. They don't inherit statics `(1)` from each other.
But built-in classes are an exception. They don't inherit statics from each other.
For example, both `Array` and `Date` inherit from `Object`, so their instances have methods from `Object.prototype`. But `Array.[[Prototype]]` does not point to `Object`. So there's `Object.keys()`, but not `Array.keys()` and `Date.keys()`.