feat(sum) desenvolvimento da funcao

This commit is contained in:
Filipe Quintanilha Evangelista 2022-10-28 12:52:20 -03:00
parent c842588b37
commit eb24460d62

View File

@ -1,4 +1,9 @@
export function sum(values) { export function sum(values) {
// implementar logica aqui // implementar logica aqui
let soma = 0;
values.map(element =>{
soma = soma + element;
}
);
return soma;
} }