Commented out debugger logs and changed from += to =

pull/1899/head
Amir Walker 1 week ago
parent c7ae98539c
commit 646dc6397e

@ -49,14 +49,14 @@ function calculateSum(){
for (const num of numbers){
if (num === numbers[0]){
a += num;
i++;
console.log(`step ${i}: ${a}`);
a = num;
//i++;
//console.log(`step ${i}: ${a}`);
}else {
a += a + num;
i++;
console.log(`step ${i}: ${a}`);
a = a + num;
//i++;
//console.log(`step ${i}: ${a}`);
}
}

Loading…
Cancel
Save