Created
January 20, 2020 03:42
-
-
Save yheihei/4206b2f8a70e10ee37d245596a937d13 to your computer and use it in GitHub Desktop.
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
console.log(Math.max(1, 3, 2)); | |
// expected output: 3 | |
const array1 = [1, 3, 2]; | |
console.log(Math.max(...array1)); | |
// expected output: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment