Objects have properties. Properties can have values. The values of these properties can be altered by methods. Methods act upon objects to alter property values and communicate (interface) with other objects.
name = new String ("This is a string");
names = new Array ("Jim", "Joe", "Laura");
The with keyword specifies an object. It is followed by a block of statements which apply specifically to the object to which the with keyword points.
with (name)
{
document.write (length);
}
The Math object contains many mathematical functions such as rounding, truncating, etc.
newDate = new Date (document.lastModified);