Understand the Constructor Property (JS)

Understand the Constructor Property (JS)


The constructor property is one of the prototype property that one object can have right?
For example if you key in any objects in google chrome console, the constructor property is always under _proto_ . like this:


Yup - it needs to be, because that constructor has to be the same for every instance of that specific type of object (in this case an array - all arrays should have the same constructor - Array), so it has to live on the prototype (which is stored under _proto_)