function findLongestWordLength(str) { return Math.max(...str.split(' ').map(word => word.length)); }
Math.max(...(x.map(el => el.length)));