Javascript Object.Create () Method

If you look in the docs , it says that Object.Create():

The Object.create () method creates a new object with the specified object prototype and properties.

I think this is ambiguous, because it does not say which property is prototypechanging ( all functions are internal [[Prototype]]or publicly available prototype). Should it be corrected in the documents or maybe I do not know the terminology?

+4
source share
1 answer

The wording of MDN may require some improvement, but the ECMAScript 5.1 specification, which is linked at the bottom of this article, is very clear.

Function.prototype. . prototype Function .

+1

Source: https://habr.com/ru/post/1611565/


All Articles