Answers for "array 3 max numbers"

1

get max number in array

console.log(arrayNumbers.sort((a, b) => a - b ));
Posted by: Guest on November-06-2021
1

how to find max number in array javascript

const array1 = [1, 3, 2];
console.log(Math.max(...array1));
Posted by: Guest on June-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language