hotfix: declara i
This commit is contained in:
parent
1af9554033
commit
97e2b39b67
@ -1,8 +1,8 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
let soma = 0;
|
||||
for (i in numbers) {
|
||||
soma += numbers[i];
|
||||
for (i in values) {
|
||||
soma += values[i];
|
||||
}
|
||||
return soma;
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
export function sumEven(value) {
|
||||
// implementar logica aqui
|
||||
let soma = 0;
|
||||
let i = 0;
|
||||
for (i in value) {
|
||||
if (value[i] % 2 != 0) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user