Answer the question
In order to leave comments, you need to log in
Extension and get set, how to combine?
I am writing an application on nodejs and at the same time I use, as I understand it, the EC5 or EC6 syntax (I don’t know myself, I don’t have classes, but there are get set and Object.create ).
Also faced a problem at inheritance of objects.
If I extend A with class B, then I cannot write accessors to its prototype,
just like transferring them there forin.
What to do?
Answer the question
In order to leave comments, you need to log in
Javascript Jedi #19 - Property Accessors and Attributes
See also the next lesson 20 on prototypes.
Perhaps this will help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question