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