how to get the how to get the largest name in an array javascript code example Example: javascript find the longest string in array Math.max(...(x.map(el => el.length)));