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