# A Deeper Look at Objects in JavaScript | kirupa.com

**URL:** <https://forum.kirupa.com/t/a-deeper-look-at-objects-in-javascript-kirupa-com/399321>\
**Category:** programming\
**Created:** [December 2, 2014, 1:48am UTC](https://forum.kirupa.com/t/a-deeper-look-at-objects-in-javascript-kirupa-com/399321 "2014-12-02T01:48:03Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![erolyil](https://avatars.discourse-cdn.com/v4/letter/e/7feea3/32.png) [@erolyil](https://forum.kirupa.com/u/erolyil)\
**Post date:** [February 3, 2015, 7:10pm UTC](https://forum.kirupa.com/t/a-deeper-look-at-objects-in-javascript-kirupa-com/399321/5 "2015-02-03T19:10:17Z")

</div>

Hi again,

> [@krilnon](#):
>
> The way I read k-man’s diagram is that [[Prototype]] references an object that resembles each newly created Object.

This is the point I am objecting already.

> [@krilnon](#):
>
> salesman.constructor == person // true **// salesman doesn’t has its own ‘constructor’ property, but salesman.prototype which is identical to person.prototype has.**

```
'constructor' in salesman // true
salesman.hasOwnProperty("constructor") // false

```

When you define an object actually two objects are defined. ‘Person’ and ‘Person.prototype’. When a new instance of an object created with new(Constructor), a single object gets created, for example ‘salesman’. ‘salesman’ has a ‘reference variable’ property called [[Prototype]] pointing to the constructors protoype for example ‘Person.prototype’ who has a contructor reference variable pointing to the constructor function, Person() in that case.

---

_[View the full topic](https://forum.kirupa.com/t/a-deeper-look-at-objects-in-javascript-kirupa-com/399321)._
