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) { export function sum(values) {
// implementar logica aqui // implementar logica aqui
let soma = 0; let soma = 0;
for (i in numbers) { for (i in values) {
soma += numbers[i]; soma += values[i];
} }
return soma; return soma;
} }

View File

@ -1,6 +1,7 @@
export function sumEven(value) { export function sumEven(value) {
// implementar logica aqui // implementar logica aqui
let soma = 0; let soma = 0;
let i = 0;
for (i in value) { for (i in value) {
if (value[i] % 2 != 0) { if (value[i] % 2 != 0) {
continue; continue;