feat: implementa função sum

This commit is contained in:
RodrigoJorge 2022-10-28 15:41:14 -03:00
parent ed34bb7d8e
commit 6685098c8e

View File

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