en.javascript.info/1-js
paroche 24d5411a0e
Update article.md
and -> or, methods -> methods

I also have a question on the subject of this sentence (should this be a separate discussion entry?):
In the "Extending built-in classes" article, in the "No static inheritance in built-ins" subsection, one finds:

"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."

In the "Extending built-in classes" article, in the "No static inheritance in built-ins" subsection, one finds:

"But built-in classes are an exception. They don’t inherit statics from each other.

For example, both Array and Date inherit from <code>Object</code>, so their instances have methods from <code>Object.prototype</code>. But <code>Array.[[Prototype]]</code> does not reference <code>Object</code>, so there’s no <code>Array.keys()</code> and <code>Date.keys()</code> static methods."

This is a subject of some curiosity for me. Through a little testing, I believe I have found that, in fact <code>Array.[[Prototype]]</code> DOES, however, reference <code>Function.prototype</code>, i.e. <code>Array.__proto__ === Function.prototype</code> (<code>true</code>). (As does <code>Date.[[Prototype]]</code>). Is there someplace where this is explained? (Preferably in a way an intelligent 11-year-old could understand?).
2019-10-06 21:53:42 -06:00
..
01-getting-started Update article.md 2019-09-24 23:40:43 -06:00
02-first-steps Typo fixed in "Function expressions and arrows" 2019-09-27 23:48:43 +05:30
03-code-quality Update article.md 2019-08-29 19:42:05 -06:00
04-object-basics fixes #1395 2019-10-02 13:20:35 +03:00
05-data-types minor 2019-10-02 10:36:06 +03:00
06-advanced-functions minor 2019-10-02 10:36:06 +03:00
07-object-properties Merge pull request #1348 from paroche/patch-31 2019-09-18 12:58:28 +03:00
08-prototypes Merge pull request #1413 from paroche/patch-44 2019-10-07 04:48:20 +03:00
09-classes Update article.md 2019-10-06 21:53:42 -06:00
10-error-handling Fixed typos 2019-09-26 17:05:40 +04:00
11-async fix 2019-09-21 22:29:38 +03:00
12-generators-iterators Update article.md 2019-10-02 15:32:37 +04:00
13-modules Update article.md 2019-09-24 10:53:07 +10:00
99-js-misc fixes #1369 2019-09-25 06:35:52 +03:00
index.md Update index.md 2017-06-03 10:26:08 +02:00