forked from M3-Academy/challenge-algorithms-v2.0
<Feture>(06-sum): implementação do código sum
This commit is contained in:
parent
80fe435a5e
commit
5c37085299
@ -1,4 +1,6 @@
|
|||||||
export function sum(values) {
|
export function sum(values) {
|
||||||
// implementar logica aqui
|
// implementar logica aqui
|
||||||
|
let sums = 0;
|
||||||
|
values.forEach(item => sums += item);
|
||||||
|
return sums
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user