I have a problem finding the maximal value of an array variable
My javascript code goes like this...
function getMax(x)
{
var j = 0;
for(var i = 0 ;i < x.length ;i++)
{
if(x[j] < x[i])
j=i;
}
return (x[j]);
}
function getMax(x)
{
var j = 0;
for(var i = 0 ;i < x.length ;i++)
{
if(x[j] < x[i])
j=i;
}
return (x[j]);
}
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
-
Inappropriate?Although this has little to do with widgets, here is a link that you might find helpful: http://javascript.about.com/library/b...
Loading Profile...



