| Applying science to business management |
  
Creating Objects
Objects are usually created by using the new keyword followed by an object
constructor function. For example,
var x=new MyConstructor();
The constructor is a special function you create that assigns
default property values. You can also create an object using the
default object constructor Object.
For example,
var x=new Object();
Once you create an object, you can assign values to its
properties as follows:
x.name="Pi";
x.value=3.1415;
|