forked from M3-Academy/challenge-algorithms-v2.0
12 lines
154 B
JavaScript
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);
|
|
|
|
} |