forked from M3-Academy/challenge-algorithms-v2.0
06-resolvido
This commit is contained in:
parent
ba9a44473d
commit
b90ee42bb6
@ -1,4 +1,9 @@
|
|||||||
export function sum(values) {
|
export function sum(values) {
|
||||||
// implementar logica aqui
|
// implementar logica aqui
|
||||||
|
var sum = 0;
|
||||||
|
|
||||||
|
for (var i = 0; i < values.length; i++){
|
||||||
|
sum+= values [i]
|
||||||
|
}
|
||||||
|
return sum
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user