Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 141247

Difference between object prototype object and object prototype property

$
0
0

I'm confuse in object prototype and object prototpye property

this is a function constructor

var Person = function () {};

this is object made from function constructor

var junaid = new Person();

Is object prototype object is junaid prototype object and object prototype property is function constructor prototype property ? tell me if i'm correct.

My second question is Person.prototype give me function constructor prototype property how I access function constructor prototype object? Is the function constructor prototype object and the function constructor prototype property the same object, or these are two different objects?

Is function constructor prototype object points to Object prototype property and function constructor prototype object property is only for add methods and properties for inheritence. Can i say that junaid.proto give me junaid prototype object and junaid.proto.proto give me Person constructor prototype object not give me Person constructor prototype property and junaid.proto.proto.proto give me Object prototype object which is null.


Viewing all articles
Browse latest Browse all 141247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>