Trouble understanding how split is working here with this for loop

Tell us what’s happening:

Can someone explain what is happening with the variable ‘words’. Shouldn’t words.length give us the length of the amount of the properties in the array?

Your code so far


function findLongestWordLength(str) {
var words = str.split(' ');
var maxLength = 0;

for (var i = 0; i < words.length; i++) {
  if (words[i].length > maxLength) {
    maxLength = words[i].length;
  }
}

return maxLength;
}

console.log(findLongestWordLength("The quick brown fox jumpedddd over the lazy dog"));

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS armv7l 12105.100.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.144 Safari/537.36.

Challenge: Find the Longest Word in a String

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/find-the-longest-word-in-a-string

words.length is the number of items in the array words. words[i].length is the number of letters in each word.