Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
function findLongestWordLength(str) {
let words = str.split('');
let maxLength = 0;
for(let i = 0; i < words.length; i++){
if (words[i].length > maxLength) {
maxLength = words[i].length
}
}
return maxLength;
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.
although not a requirement for this challenge, you may take an extra mile to identify which substring/s from the original array ‘arr1’ has/have the longest length (and even identify the index/indices of the longest substring/s).
the final result may look like the following example: