fix(longestWords): removendo testes feitos com console log

10-longestWords
This commit is contained in:
Bernardo Cunha Ernani Waldhelm 2022-11-01 16:23:55 -03:00
parent 07c54778f0
commit f22d44c39b

View File

@ -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"]));
}