Answers for "bigget number in an array java script"

1

bigget number in an array java script

console.log(Math.max(1, 3, 2));
// expected output: 3

console.log(Math.max(-1, -3, -2));
// expected output: -1

const array1 = [1, 3, 2];

console.log(Math.max(...array1));
// expected output: 3
Posted by: Guest on July-09-2020

Code answers related to "bigget number in an array java script"

Code answers related to "Javascript"

Browse Popular Code Answers by Language