function findLongest(str) {
var spl = str.split(" ");
var longest = 0
for (var i = 0; i <= spl.length; i++) {
if (spl[i].length > longest) { //(1)
longest = spl[i].length;
}
}
return longest;
}
console.log(findLongest("The quick white fox jumped around the massive dog"), 7);