Array Elements

by Prabakaran 2011-06-08 17:38:18

var test = new Array(0,1,2,3,4,5);

for(var i=0;i<10;i++){
var cond = false;
var test_length = test.length;
for(j=0;j<test_length;j++){

if(i==test[j]){
cond = true;
}


}
if(cond == false){
document.write(i);
document.write("<br/>");
}
}

Tagged in:

1151
like
0
dislike
0
mail
flag

You must LOGIN to add comments