1

Possible Duplicate:
What is the `constructor` property really used for?

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

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

thanks in advance

Community
  • 1
  • 1
PCA
  • 1,677
  • 6
  • 28
  • 45

0 Answers0