Previous Example-|-Next Example-|-Return to Chapter Listing
Example 9.1:
Creating and Checking an Array
Click on the buttons to see what is held in the specified positions in the arrays. What you see for the second to last button depends on the version of the browser you're using. In Netscape Navigator 2 you'll see 187--the array length, the number passed to the array in parentheses. In Netscape Navigator 3 and later, and in Internet Explorer 3, you'll see null, because in those browsers the [0] position in the array no longer holds the length.
This is the script we used in the HEAD:
And this form:
Previous Example-|-Next Example-|-Return to Chapter Listing