5.8 Working With Object Instances
All object instances inherit properties and methods from the prototype of their constructor. We can find out whether a property is defined on an object directly or inherited from the prototype. To do this, we use the
hasOwnProperty method of the
Object constructor. We’ll cover this and some other
Object constructor methods in this lesson.