Answer the question
In order to leave comments, you need to log in
Why use prototype on a constructor function property when you can set it via this.__proto__?
Hello, what is the difference between:
function Obj ( ) {
this.__proto__ = new(some object);
}
and
function Obj ( ) {
Obj.prototype = { __proto__ : (any object).prototype };
}
???
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