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){ for (const num of numbers){
if (num === numbers[0]){ if (num === numbers[0]){
a += num; a = num;
i++; //i++;
console.log(`step ${i}: ${a}`); //console.log(`step ${i}: ${a}`);
}else { }else {
a += a + num; a = a + num;
i++; //i++;
console.log(`step ${i}: ${a}`); //console.log(`step ${i}: ${a}`);
} }
} }

Loading…
Cancel
Save