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

12 lines
154 B
JavaScript

export function sum(values) {
var numbers = [15,40,55];
var sum = 0;
for(var i =0;i<numbers.length;i++){
sum+=numbers[i];
}
console.log(sum);
}