var array1=[4, 0, 7, 9, 0, 0, 2, 6, 0, 3, 1, 0]
var array2=[]
for (var i=0;i<array1.length;i++){
if (array1[i]==0) {
continue
}else {
array2.push(array1[i])
}
document.write(array1[i])
}
var array1=[4, 0, 7, 9, 0, 0, 2, 6, 0, 3, 1, 0]
var array2=[]
for (var i=0;i<array1.length;i++){
if (array1[i]==0) {
continue
}else {
array2.push(array1[i])
}
document.write(array1[i])
}