Answers for "rite a function that takes in an array of numbers and outputs the maximum number."

0

greater number in arraya jd

var array = [3 , 6, 2, 56, 32, 5, 89, 32];
var largest= 0;

for (i=0; i<=largest;i++){
    if (array[i]>largest) {
        var largest=array[i];
    }
}




console.log(largest);
Posted by: Guest on May-28-2020
-1

rite a function that takes in an array of numbers and outputs the maximum number.

function largestOfFour(arr) {
  return arr;
}
largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);
Posted by: Guest on December-09-2020

Code answers related to "rite a function that takes in an array of numbers and outputs the maximum number."

Code answers related to "Javascript"

Browse Popular Code Answers by Language