Skip to content

Instantly share code, notes, and snippets.

@myogeshchavan97
Created November 19, 2019 06:31
Show Gist options
  • Save myogeshchavan97/4c29e397ef94f5e667fdbf033b64eceb to your computer and use it in GitHub Desktop.
Save myogeshchavan97/4c29e397ef94f5e667fdbf033b64eceb to your computer and use it in GitHub Desktop.
Maximum of number using spread operator
const numbers = [1000, -20, 0, 40, 800];
const max = Math.max(...numbers);
console.log(max);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment