3

Time after time in different sources I see mentioning about Prototypal inheritance and Nonprototypal inheritance, but I dont understand what does it means. As I know JS have only Prototypal inheritance so what is another one?

What differences and what is the main idea?

3
  • You're true, there is no other inheritance than prototypal in JS. Commented Jul 30, 2014 at 10:36
  • Could you provide a link to any source that talk about "nonprototypal" inheritance in JavaScript? Commented Jul 28, 2015 at 11:54
  • The 'other' or 'nonprototypal' kind of inheritance is called 'classical' i.e. based on classes. It is not supported in JS (until ES2015 standard), but there are many ways to emulate it. Commented Jul 28, 2015 at 11:59

1 Answer 1

1

Sorry, but I think there's no such thing as non-prototypal inheritance. The model of inheritance used in JS is prototypal inheritance, which is uses chains of prototypes.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.