my script creates an empty array and then populates it. But if new arguments appear, it is expected that the script will destroy the old and create a new one.
var Passengers = new Array(); function FillPassengers(count){ for(var i=0;i<count;i++) Passengers[i] = i; }
I want to destroy the old one, because the new account may be smaller than the old one, and the last elements of the array will still store the old array? is that right, and if so, can i destroy it?
ismail atkurt
source share