About | Home > ComputerStuff > Software > Programming > ProgrammingLanguages > Javascript > JSPrototypeInheritance | Contact

1    function Person(){...}
2    Person.prototype.sayHi = function(...){...};
3    function Child(...){...}
4    Child.prototype = Object.create(Person.prototype);
5    Child.prototype.constructor = Child;

This diagram explains each of these steps


To comment or ask questions, you may prefere to Contact me directly, as I get no notification when you post a comment in here.

[WWW]Je suis parrain Linux http://i.imgur.com/ui89F.png.

Si vous êtes dans ma région et que avez besoin d'aide pour installer linux, vous pouvez me contacter
Sinon, [WWW]vous pouvez chercher un parrain dans votre région.


Note: You must be logged in to add comments

This is a Wiki Spot wiki. Wiki Spot is a 501(c)3 non-profit organization that helps communities collaborate via wikis.