sum atualizado

This commit is contained in:
Nathalia Sardou 2022-10-30 00:36:25 -03:00
parent a37a8bbebe
commit 2a50005c31

View File

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