how to get minimum amount of random logs and maximum in array javascript code example Example: javascript minimum number in array const min = arr => Math.min(...arr);