challenge-algorithms-v2.0-a.../06-sum/index.js

12 lines
154 B
JavaScript
Raw Normal View History

export function sum(values) {
2022-11-02 14:59:41 +00:00
var numbers = [15,40,55];
var sum = 0;
for(var i =0;i<numbers.length;i++){
sum+=numbers[i];
}
console.log(sum);
}