how to return the largest number in js 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