Question 7 of 8Pro Only

Explain prototypal inheritance in JavaScript. How does it differ from classical inheritance?

Sample answer preview

Prototypal inheritance is JavaScript's mechanism for objects to inherit properties and methods from other objects. Every object has an internal link to another object called its prototype. When you access a property on an object, JavaScript first looks at the object itself.

prototypeprototype chaininheritanceObject.create__proto__constructor

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 7+ more Frontend Developer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime