how to find first largest number javascript code example Example: javascript largest number in array const max = arr => Math.max(...arr);