View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:14 PM
Tamayi M
Posts: n/a
ha? if you want to find the largest number in a set of numbers:

alert( max( [10,5,21,54,23] ) );


============ OR ============

var x = 5;
var y = 7;
var z = 13;

alert( max( [x,y,z] ) );



============ OR ============

var nameOfArray = new Array(12,13,17,8);

alert ( max (nameOfArray) );




http://www.math.rutgers.edu/~erowland/playground.html

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!