A Pen by Dano Manion on CodePen.
Created
December 22, 2019 14:39
-
-
Save danomanion/b00f5c6b1c49d6f638fe9435dd0b126f to your computer and use it in GitHub Desktop.
Math.max + Spread Operator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const myArray = [39,2312,44,3,932,341238,402547,912,233,39,336568,5322130,6401,8562,42,128912,379] | |
const maxVal = Math.max(...myArray); | |
console.log(maxVal) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment