V
V
vasIvas2014-11-14 19:35:57
JavaScript
vasIvas, 2014-11-14 19:35:57

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

1 answer(s)
I
Ivan Solomennikov, 2014-11-14
@vasIvas

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 question

Ask a Question

731 491 924 answers to any question