Tell us what’s happening:
I have tried so many examples but to no solution. am stuck here.
FIND THE LONGEST WORD
OF A STRING
Your code so far
function findLongestWordLength(str) {
return str.length;
}
findLongestWordLength("The quick brown fox jumped over the lazy dog");
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0
Challenge Information:
Basic Algorithm Scripting - Find the Longest Word in a String