javascript how to test for maximum and minimum value code example Example: javascript minimum number in array const min = arr => Math.min(...arr);