feat(03): finished

This commit is contained in:
Matheus Brollo Dauter 2022-10-31 13:50:14 -03:00
parent 835d645251
commit 82a96126a4
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,8 @@
export function maxValue(values) {
// implementar logica aqui
if (values.length == 0) {
return 0
}
return Math.max(...values);
}

View File

@ -1,4 +1,8 @@
export function sum(values) {
// implementar logica aqui
let soma = 0
for (let index = 0; index < values.lenght; index += 1) {
soma = soma + values[index];
}
return soma;
}