Answer the question
In order to leave comments, you need to log in
When to use util.inherits and when to use Extends?
Hello, I'm a little confused, why use util.inherits when you can inherit via Extend and super()?
Thank you.
UPD. If you happen upon this question and the answer is important to you: util.inherits is a way of prototypal inheritance for pre-ES6 syntax, feel free to use the ways you like.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question