Take the following code is an simple example for finding bigger value in an array
var foo = new Array("222","323","314","431","422");
var biggest = 10;
for (x=0;xif (foo[x] > biggest) {
biggest = parseint(foo[x]); //right here
}
}
document.write(biggest);
var foo = new Array("222","323","314","431","422");
var biggest = 10;
for (x=0;x
biggest = parseint(foo[x]); //right here
}
}
document.write(biggest);
No comments:
Post a Comment