challenge-algorithms-v2.0-F.../06-sum/index.js

9 lines
154 B
JavaScript
Raw Normal View History

export function sum(values) {
// implementar logica aqui
2022-10-28 15:52:20 +00:00
let soma = 0;
values.map(element =>{
soma = soma + element;
}
);
return soma;
}