I have an array and i want something to happen if any two elements of the array are equal: why is this not working
var jodoo=new Array(9)
for (i=1; i<9; i++){
jodoo=Math.round((Math.random()*300)-1);
}
if (((jodoo)==(jodoo))){
parent.frame0.document.images[jodoo].src="Images/explosion.jpg";
return;
}
var jodoo=new Array(9)
for (i=1; i<9; i++){
jodoo=Math.round((Math.random()*300)-1);
}
if (((jodoo)==(jodoo))){
parent.frame0.document.images[jodoo].src="Images/explosion.jpg";
return;
}