find max and min value in array javascript without function code example Example: javascript minimum number in array const min = arr => Math.min(...arr);