return largest number javascript in array question code example
Example: get largest number in array javascript
const array1 = [1, 3, 2];
Math.max(...array1);
// expected output: 3
const array1 = [1, 3, 2];
Math.max(...array1);
// expected output: 3