diff --git a/10-longestWords/index.js b/10-longestWords/index.js index 5d8654e..08aaea9 100644 --- a/10-longestWords/index.js +++ b/10-longestWords/index.js @@ -7,17 +7,7 @@ export function longestWords(words) { maior = string; } } - const maiores = words.filter((string) => string.length === maior.length); return maiores; - console.log(maiores); -} - - - - - -// console.log(longestWords(['oi', 'tudo', 'bem'])); -// console.log(longestWords(['Javascript', 'é', 'show'])); -console.log(longestWords(["abacaxi", "melancia", "bananana"])); \ No newline at end of file +} \ No newline at end of file