JavaScript-Garden icon indicating copy to clipboard operation
JavaScript-Garden copied to clipboard

Difference between Object.create(), previousFunction.prototype and new Function() when applying inherance

Open bichotll opened this issue 9 years ago • 0 comments

Hi, I think this is a good thing to point out on the "The prototype" section. At least as a note on a side of "The first major difference is that inheritance in JavaScript uses prototype chains.".

For more information: http://stackoverflow.com/questions/4166616/understanding-the-difference-between-object-create-and-new-somefunction#answer-4166723

I can create a pull request for that in en/es if accepted.

bichotll avatar May 29 '16 10:05 bichotll