highest number in array javascript without max code example Example: javascript largest number in array const max = arr => Math.max(...arr);