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