fixed typo on day 6

pull/802/head
Hongsreng-P 2 years ago
parent 55d8e3dbc0
commit 1467c07563

@ -180,7 +180,7 @@ let sum = 0
for (const num of numbers) { for (const num of numbers) {
sum = sum + num sum = sum + num
// can be also shorten like this, sum += num // can be also shorten like this, sum += num
// after this we will use the shorter synthax(+=, -=, *=, /= etc) // after this we will use the shorter syntax(+=, -=, *=, /= etc)
} }
console.log(sum) // 15 console.log(sum) // 15

Loading…
Cancel
Save