diff --git a/06-sum/index.js b/06-sum/index.js index ebc2ee1..100d715 100644 --- a/06-sum/index.js +++ b/06-sum/index.js @@ -1,4 +1,11 @@ export function sum(values) { // implementar logica aqui - -} \ No newline at end of file + + let soma = 0 + for (let index = 0; index < values.length; index++) { + soma += values[index] + } + return soma; +} + +