feat(sum): implementa function

This commit is contained in:
Cainã Milech 2022-10-28 18:16:14 -03:00
parent e7aa3ebfa4
commit 0d5a0e9130

View File

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