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.9m questions
7.7m answers