feat: Soluciona o exercício 06 - Sum
This commit is contained in:
parent
1176d331b2
commit
104b003d48
@ -1,4 +1,9 @@
|
||||
export function sum(values) {
|
||||
// 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