What is "inheritance" in Javascript?

Goto Top
Can anyone explain to me with simple words the meaning of "inheritance" in JavaScript? If you could give examples that would be too great. You can also share some links related to Inheritance in JavaScript.
Thanks in Advance!

Content-Key: 3380114436

Url: https://administrator.pro/contentid/3380114436

Printed on: August 7, 2022 at 09:08 o'clock

Member: colinardo
colinardo Jul 20, 2022 updated at 16:27:29 (UTC)
Goto Top
Hi @SandeepKamra,
inheritance means, that for ex. an object inherits a set of properties or functions from a parent object. A good example for inheritance are javascript classes
So if you inherit a parent class the properties/functions from the parent are made available to current object.