Javascript....
2008-07-03 16:52:59
var myArray = new Array();
myArray[0] = "hello";
myArray[1] = "merhaba";
myArray[2] = "ciao";
for (var i=0;i
alert(myArray[i]);
var myOtherArray = [];
myOtherArray[0] = "hello";
myOtherArray[1] = "merhaba";
myOtherArray[2] = "ciao";
for (var i=0;i
alert(myOtherArray[i]);
Can someone tell me the difference in these Vectors....i mean Arrays that are dynamic in size but you can't delete a single element at index X.
EDIT:
After all this pain and Googling, i found how to remove elements from an array in javascript.
A big fvcking round of applause for the splice method.
splice(index,length): starting from index remove elements until length.
