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