1.

Describe the distinction between Class and Prototypal inheritance in Javascript?

Answer»

From most other programming languages, Inheritance in JavaScript is different. JavaScript's OBJECT system is prototype-based, not class-based. OBJECTS in JavaScript are just a set of VALUE pairs and a name (KEY). TALKING about inheritance, JavaScript just has one construct: objects. Each object has a private property that includes a link to another object named its prototype.



Discussion

No Comment Found