Create a function that takes an array of numbers and return both the minimum and maximum numbers, in that order. edibit code example
Example: how to find max number in array javascript
const array1 = [1, 3, 2];
console.log(Math.max(...array1));
const array1 = [1, 3, 2];
console.log(Math.max(...array1));