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[i]=Math.round((Math.random()*300)-1);
}
if (((jodoo[i])==(jodoo[i]))){...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.