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