From 8448c20a83edf946d6e7043a68c3f9e6c4410487 Mon Sep 17 00:00:00 2001 From: DaviHKlein Date: Fri, 28 Oct 2022 18:57:32 -0300 Subject: [PATCH] feat(longestWords): implementa funcao longestWords --- 10-longestWords/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/10-longestWords/index.js b/10-longestWords/index.js index a98d2d8..b54e1cb 100644 --- a/10-longestWords/index.js +++ b/10-longestWords/index.js @@ -1,4 +1,13 @@ export function longestWords(words) { // implementar logica aqui - + let maioresPalavras = []; + let auxiliar=words[0]; + for(let i=0;i