Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get max value in an array

const myArray = [1, 14, 32, 7];

const maxValue = Math.max(...myArray);

console.log(maxValue); // 32
Source by javascriptf1.com #
 
PREVIOUS NEXT
Tagged: #js #max #array
ADD COMMENT
Topic
Name
7+1 =