why we use constructor in javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12622137/what-is-the-constructor-property-really-used-for">What is the `constructor` property really used for?</a>  </p>
</blockquote>



<p>I would like to understand, exactly why we use constructor in javascript. In which scenario we use constructor.</p>

<p>I know constructor property is a reference to a function that created an object, but need a simple real time example.</p>

<p>thanks in advance </p>
