Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
function findLongestWordLength(str) {
let words=str.split("");
let max = 0;
for (let i=0; i<words.length; i++){
if(words[i].length > max){
max = words[i].length;
}
}
return max;
}
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/102.0.5005.124 Safari/537.36 Edg/102.0.1245.44
Challenge: Find the Longest Word in a String
Link to the challenge: