export function longestWords(words) { // implementar logica aqui let size = 0; let longest = [""]; for (let word of words) { if (word.length >= size) { size = word.length; if (longest[longest.length - 1].length < word.length) { longest = []; longest.push(word); } else { longest = [...longest, word]; } } } return [...longest]; }