finding the largest number in an array with a for loop javascript code example Example: javascript largest number in array const max = arr => Math.max(...arr);