Skip to content

Commit f1ffe57

Browse files
committed
Fix largest-series-product
1 parent fd13e7b commit f1ffe57

File tree

1 file changed

+2
-1
lines changed
  • exercises/practice/largest-series-product/.meta

1 file changed

+2
-1
lines changed

exercises/practice/largest-series-product/.meta/proof.ci.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export const largestProduct = (digits, seriesLength) => {
2020
.split('')
2121
.map((digit) => Number(digit))
2222
.reduce((a, b) => a * b);
23-
if (product > largestProduct) {
23+
24+
if (product > result) {
2425
result = product;
2526
}
2627
}

0 commit comments

Comments
 (0)