hotfix: declara i

This commit is contained in:
Vinicius 2022-11-08 18:25:44 -02:00
parent 1af9554033
commit 97e2b39b67
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;