Merge pull request 'feat(sum): cria funcao que soma elementos de um array' (#6) from feature/sum into master
Reviewed-on: #6
This commit is contained in:
commit
c4cb3bfb19
@ -1,4 +1,8 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
let soma = 0;
|
||||
for (i in numbers) {
|
||||
soma += numbers[i];
|
||||
}
|
||||
return soma;
|
||||
}
|
Loading…
Reference in New Issue
Block a user