DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+3 =
Submit