|
|
Array Elements - Javascript
|
Views : 297
|
|
Tagged in : Javascript
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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/>");
}
} |
|
By Prabakaran, On - 2011-06-08 |
|
|
|