Merge pull request #1420 from paroche/patch-49

Update article.md
This commit is contained in:
Ilya Kantor 2019-10-11 09:15:20 +03:00 committed by GitHub
commit db0407b9f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ Normally, when one class extends another, both static and non-static methods are
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 reference `Object`, so there's no `Array.keys()` and `Date.keys()` static methods.
For example, both `Array` and `Date` inherit from `Object`, so their instances have methods from `Object.prototype`. But `Array.[[Prototype]]` does not reference `Object`, so there's no, for instance, `Array.keys()` (or `Date.keys()`) static method.
Here's the picture structure for `Date` and `Object`: