From acb49b92be9e1dc6795064c7cfbf7ee108deaf58 Mon Sep 17 00:00:00 2001 From: Gustavo_Rallenson Date: Fri, 28 Oct 2022 20:57:39 -0300 Subject: [PATCH] Feat: Finalizado 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..a1f206c 100644 --- a/06-sum/index.js +++ b/06-sum/index.js @@ -1,4 +1,8 @@ export function sum(values) { // implementar logica aqui - + let atual = 0 + for(let i = 0;i < values.length;i++){ + atual = atual + values[i] + } + return atual } \ No newline at end of file