forked from M3-Academy/challenge-algorithms-v2.0
feat(sum) desenvolvimento da funcao
This commit is contained in:
parent
c842588b37
commit
eb24460d62
@ -1,4 +1,9 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
let soma = 0;
|
||||
values.map(element =>{
|
||||
soma = soma + element;
|
||||
}
|
||||
);
|
||||
return soma;
|
||||
}
|
Loading…
Reference in New Issue
Block a user