feat: criando a area o codigo do calculo em sum

This commit is contained in:
PATRICK DE SOUZA SILVA 2022-10-29 10:00:43 -03:00
parent c6f6df9c59
commit d43fc51f77

View File

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