fix(longesWords): conserta nome do parametro

This commit is contained in:
Vinicius 2022-11-03 01:15:26 -02:00
parent 612643df7e
commit 0f2f65fcf0

View File

@ -2,10 +2,10 @@ export function longestWords(words) {
// implementar logica aqui
let comp = 0;
let resultado = [];
for (i in text) {
if (comp < text[i].length) {
comp = text[i].length;
resultado.push(text[i]);
for (i in words) {
if (comp < words[i].length) {
comp = words[i].length;
resultado.push(words[i]);
}
}
if (resultado.length > 1) {