accepts an array of strings and returns longest string javascript code example Example: javascript find the longest string in array Math.max(...(x.map(el => el.length)));