<span>Spreadsheet software consists of an electronic ledger designed to perform mathematic calculations quickly </span>
Answer:
function findLongestWord(str) {
var longestWord = str.split(' ').sort(function(a, b) { return b.length - a.length; });
return longestWord[0].length;
}
findLongestWord(InputHere);
Explanation:
Replace InputHere with the input
"Sleeping is an effect of <span>Depressants, but agitation may cause a person to wake up"</span><span />