Answer:
function findLongestWord(str) {
var longestWord = str.split(' ').sort(function(a, b) { return b.length - a.length; });
return longestWord[0].length;
}
findLongestWord(InputHere);
Step-by-step explanation:
Replace InputHere with the input
5.6m questions
7.4m answers