From 48bb5aa91039cfbbbd3e1bb07bb171c47895ad85 Mon Sep 17 00:00:00 2001 From: DaviHKlein Date: Fri, 28 Oct 2022 18:49:45 -0300 Subject: [PATCH] feat(sum): implementa funcao sum --- 06-sum/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/06-sum/index.js b/06-sum/index.js index ebc2ee1..d76cc0f 100644 --- a/06-sum/index.js +++ b/06-sum/index.js @@ -1,4 +1,8 @@ export function sum(values) { // implementar logica aqui - + let resultado = 0; + for(let i=0;i