Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

Constructor Property

Every object has a property named constructor that points to the constructor function used to create the object. This property can be used to determine the type of any object.

var obj=new Circle(5); // create a new object
var type=obj.constructor; // type = Circle

The constructor property is defined in the constructor prototype instead of in each object instance.

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend