Hello Every one,
please tale me Inheritance in javascript simple Example ...
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suraj SahooRank #382 · 6.6K reputationPosted Mar 3, 2015, 11:01 PM EST
Below link is a very good article to understand your query.
http://www.2ality.com/2012/01/js-inheritance-by-example.html
I hope this helps you understand.
Thanks
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Mar 3, 2015, 11:03 PM EST
So, you can create inheritance in JavaScript following the prototype functions. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain.