forked from M3-Academy/challenge-algorithms-v2.0
feat(06-sum): Cria a função
This commit is contained in:
parent
fbe17ccd07
commit
d51aa1b44b
@ -1,4 +1,6 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
let sumAll = 0;
|
||||
for (let i = 0; i < values.length; i++) {
|
||||
sumAll = sumAll + values[i];
|
||||
} return sumAll;
|
||||
}
|
Loading…
Reference in New Issue
Block a user