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
document.write(myCars[0]); |
0 comments: