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

contents.gifindex.gifprev1.gifnext1.gif

Object Literals

In addition to using an object constructor, you can create objects using an object literal. For example,

var x={name:"Pi",value:3.1415};

An object literal consists of a list of properties enclosed in braces. Each property consists of the property name followed by the colon character (:) and the property value.

Objects can be nested so that property values can be other objects. For example,

var x={
PI:{name:"Pi",value:3.1415},
E:{name:"E",value:2.71828}
};

A more detailed description of objects can be found in the chapter entitled Objects.

  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