math.min in array in js code example Example: javascript math min array const nums = [1, 2, 3]Math.min(...nums) // 1Math.max(...nums) // 3