Entrega do Desafio #1

Merged
anacarolinaduartecavalcante merged 12 commits from feature/10-longestWords into master 2022-10-28 12:14:06 +00:00
Showing only changes of commit 6d91bf9bcb - Show all commits

View File

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