Javascript Object
An object is a collection of properties. These properties can either be primitive data types, other objects, or functions (which in this case are called methods, but more on this later). A constructor function (or simply, constructor) is a function used to create an object – this too we’ll discuss in detail later. JavaScript comes with many built-in objects, such as theArray, Image,
and Date
objects. Many of you are familiar with Image
objects from creating those ever-so-cute rollover effects. Well, when you use the codevar Image1 = new Image();
Image1.src = "xyz.gif";
0 comments:
Post a Comment