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