Click to See Complete Forum and Search --> : Emptying an Array


rcamp
04-09-2003, 04:13 AM
I have created an array and assign values to it.

var check = new Array("","","","","")

How do I empty the array ready to go again??

Any help would be appreciated

gil davis
04-09-2003, 05:46 AM
The fastest way would be to create it again without the var keyword.

Another way would be with a for loop:for (var i in check) {check[i] = "";}