longestWords atualizado c/ erro
This commit is contained in:
parent
9e1b18baef
commit
145f69c047
@ -1,4 +1,9 @@
|
||||
export function longestWords(words) {
|
||||
// implementar logica aqui
|
||||
|
||||
}
|
||||
// implementar logica aqui
|
||||
var longest ="";
|
||||
for (let word of words) {
|
||||
if (word.length >= longest.length) longest = word;
|
||||
}
|
||||
return longest;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user