From 309e130fd55eedc9544cb4746291bdac7ad79893 Mon Sep 17 00:00:00 2001 From: carloswinter Date: Fri, 28 Oct 2022 16:07:47 -0300 Subject: [PATCH] feat(sum):adiciona resolucao questao06-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..5a27c2f 100644 --- a/06-sum/index.js +++ b/06-sum/index.js @@ -1,4 +1,8 @@ export function sum(values) { // implementar logica aqui - + let res=0; + values.forEach(element => { + res+=element; + }); + return res; } \ No newline at end of file -- 2.34.1