From eb24460d6204ff800fdcd405e5ee85467fe5c5bc Mon Sep 17 00:00:00 2001 From: Filipe Quintanilha Date: Fri, 28 Oct 2022 12:52:20 -0300 Subject: [PATCH] feat(sum) desenvolvimento da funcao --- 06-sum/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/06-sum/index.js b/06-sum/index.js index ebc2ee1..80a820c 100644 --- a/06-sum/index.js +++ b/06-sum/index.js @@ -1,4 +1,9 @@ export function sum(values) { // implementar logica aqui - + let soma = 0; + values.map(element =>{ + soma = soma + element; + } + ); + return soma; } \ No newline at end of file