Through given a function, I return an array with numerous random numbers. I need to get the largest number between this array, and for this I ended up finding the Math.max()
function. The problem is that I can not get it to read my array and then return the maximum value ... I'm basically doing this:
var retorno = [3,6,9,22,46,73];
var maiorNumero = Math.max(retorno); //retornaria 73
Could someone present me some solution to the fact?