0 points

find the largest number in a JavaScript array? - Stack Overflow


dashboard

Sun Nov 08 2020 08:19:22 GMT+0000 (UTC)

Posted by @ali_alaraby #javascript

var array = [267, 306, 108];
var largest = Math.max.apply(Math, array); // 306
content_copy Copy

https://stackoverflow.com/questions/1379553/how-might-i-find-the-largest-number-contained-in-a-javascript-array