forked from M3-Academy/challenge-algorithms-v2.0
feat(sum):adiciona resolucao questao06-sum #6
@ -1,4 +1,8 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
let res=0;
|
||||
values.forEach(element => {
|
||||
res+=element;
|
||||
});
|
||||
return res;
|
||||
}
|
Loading…
Reference in New Issue
Block a user