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