C
C
Cyber_bober2016-11-06 11:48:04
Node.js
Cyber_bober, 2016-11-06 11:48:04

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 question

Ask a Question

731 491 924 answers to any question