From e35e6c76f3822d5cd4c4070cbecb59815194f20f Mon Sep 17 00:00:00 2001 From: Rhayllon Date: Sat, 29 Oct 2022 04:20:25 -0300 Subject: [PATCH] Feat(Desafio_2.6): Cria resposta desafio 2.6 --- 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..5649405 100644 --- a/06-sum/index.js +++ b/06-sum/index.js @@ -1,4 +1,8 @@ export function sum(values) { // implementar logica aqui - + let soma = 0 + for(let i = 0; i < values.length; i++){ + soma += values[i] + } + return soma } \ No newline at end of file