Longest word

Challenge 📝

Given is an array words with words. Return the longest word of the array. Return 'Foobar' if the two longest words have the same length.

function longestWord(words) {
 
}
Test Cases
Console Logs
JS Errors
Run Code!
flag