49
rated 0 times
[
51]
[
2]
/ answers: 1 / hits: 16910
/ 14 Years ago, fri, september 10, 2010, 12:00:00
var one = 1415;
var two = 2343;
var three = 11;
How to get the biggest number from these variables?
More From » jquery
var one = 1415;
var two = 2343;
var three = 11;
How to get the biggest number from these variables?
If you have them in an array, you can do this:
var numbers_array = [1415, 2343, 11];
numbers_array.push( 432 ); // now the array is [1415, 2343, 11, 432]
var biggest = Math.max.apply( null, numbers_array );