diff --git a/06-sum/index.js b/06-sum/index.js index ebc2ee1..67d8c82 100644 --- a/06-sum/index.js +++ b/06-sum/index.js @@ -1,4 +1,6 @@ export function sum(values) { // implementar logica aqui - + return values.reduce((somatorio, valor) => { + return somatorio + valor + }, 0) } \ No newline at end of file