nao foi pelo merge

This commit is contained in:
Nathalia Sardou 2022-11-02 01:14:13 -03:00
parent a0f01e5816
commit a808056b34

View File

@ -1,4 +1,8 @@
export function longestWords(words) { 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;
}