Created
June 15, 2018 08:21
-
-
Save darksh3ll/bd003fca0aba32716c7d69b4050d413d to your computer and use it in GitHub Desktop.
Functions Math.min et max avec le destructuring
This file contains hidden or 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 arr = [12,23,35,69,85] | |
| console.log(Math.min(...arr)); // Renvoie 12 | |
| console.log(Math.max(...arr));// Renvoie 85 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment