the largest integer its opposite inside in a array that also has the array js code example
Example 1: javascript largest number in array
const max = arr => Math.max(...arr);
Example 2: javascript set value to the largest value in an array
//get min/max value of arrays
function getArrayMax(array){
return Math.max.apply(null, array);