DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js highest number in array
var arr = [1, 2, 3]; var max = arr.reduce(function(a, b) { return Math.max(a, b); }, -Infinity);
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#js
#highest
#number
#array
ADD COMMENT
Topic
COMMENT
Name
6+6 =
Submit