You can refer to a particular element in an array by referring to the name of the array and the index number. The index number starts at 0.

The following code line:

 document.write(myCars[0]);

will result in the following output:
 
Saab


This entry was posted on 11:27 PM and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

0 comments: