develop #1

Merged
affonso_kopmann merged 11 commits from develop into master 2022-10-30 18:58:45 +00:00
Showing only changes of commit ecb4e8b483 - Show all commits

View File

@ -2,4 +2,10 @@ import { arrayBuffer } from "stream/consumers";
export function longestWords(words) {
// implementar logica aqui
let maioresPalavras = "";
for ( const word of words ) {
if ( word.length > maioresPalavras.length ) {
maioresPalavras = word; }
}
return words.filter ( ( word ) => word.length == maioresPalavras.length ) ;
}