find the longest string and return that string code example Example: javascript find the longest string in array Math.max(...(x.map(el => el.length)));