Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get largest number in array javascript

const array1 = [1, 3, 2];

Math.max(...array1);
// expected output: 3
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #largest #number #array #javascript
ADD COMMENT
Topic
Name
2+4 =