To modify a value in an existing array, just add a new value to the array with a specified index number:

 myCars[0]="Opel";

Now, the following code line:

 document.write(myCars[0]);

will result in the following output:
Opel


This entry was posted on 11:28 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: