Desired outcome is a the length of the longest word in a given string (numerical).

Ex: findLongestWord('I like tacos');   => 5

I get the 'cannot read length of undefined' error message when I start the loop from the end, and I only get the first new value of 'longest' when I start the loop forward. What am I missing?

```
function findLongestWord(string) {
  var longest = 0;
  var array = string.split(' ');
  for (var i = array.length; i >= 0; i--) {
    if (array[i].length > longest) {
        longest = array[i].length;
    }
  }
  return longest;
}

```