var arr = [1,2,3]; alert(arr); arr = []; alert(arr);
var arr = [1,2,3]; for (i=0;i<arr.length;i++)arr.splice(i) alert(arr)