Longest Even word : <p>I need to find the longest even word from a sentence.</p>

<p>I've tried this code for finding the largest word.</p>

<p>But I need the even word.</p>

<p>Can anyone please help me?</p>

<pre><code>function FindlongestWord(input) {
  var arrWords = input.split(' ');
  var wordlength = 0;
  var word = '';
  arrWords.forEach(function(wrd) {
    if (wordlength &lt; wrd.length) {
      wordlength = wrd.length;
      word = wrd;
    }
  });
  return word;
}
</code></pre>
