I have an array with 4 elements
0 house
1 garden
2 table
3 dog
I would remove the third element (that who have index 2)
so to have:
0 house
1 garden
2 dog
code not work
---------------------------------------------
var indxx=0;
for (var ind = 0; ind <array1.length; ind++)
{
if(ind==2)
{ }
else
{
array1[indxx]=array1[ind];
indxx++;
}
}
------------------------------------------
is there a directly command?
is possible to make a cicle that work?