By: aathishankaran Printer Friendly Format
The second set of objects never
call them built-in language objects because they are simply constructs of the
has worked with the following types of objects:
The string object represents a
assigned variables and string literals as string objects.
The array object is an object
representation of the traditional programming construct. An array is an ordered
set of data elements, and every index number in an array contains a value. You
can have as many indexes in the array as you want.
Arrays are powerful and your
shows a simple example.
theJs = new Array(3)
theJs[l] = "Jordan"
theJs = "Jared"
theJs = "Justin"
document.write("<H1>The three Js are:</H1>")
for (var i = 1; i < 4; i++)
document.write ("<LI>" + theJs [i])
The array object is new to Netscape 3.0. Although you could work with arrays in
Netscape 2.x, you can now use the new operator to create
true array objects.
Most Viewed Articles (in Java )
Latest Articles (in Java)
Comment on this tutorial
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews