Function findLongestWordLength(str) { return str.length; } findLongestWordLength("The quick brown fox jumped over the lazy dog");

Tell us what’s happening:
I need help with this: function findLongestWordLength(str) {
return str.length;
}

findLongestWordLength(“The quick brown fox jumped over the lazy dog”);

Your code so far


function truncateString(str, num) {
// Clear out that junk in your trunk
if (str.length > num) {
  return str.slice(0, num) + "...";
} else {
  return str;
}
}

truncateString("The quick brown fox jumped over the lazy dog");

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36.

Challenge: Find the Longest Word in a String

Link to the challenge:

@uchennaongit We can not help you, because your question seems to be about the Find the Longest Word in a String challenge, but the code you have posted is for a completely different challenge. Please edit your original post to include the code for the correct challenge. Also, please be specific about what help you need.

Noted sir, I will do that next time