We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 100b230 commit c76a231Copy full SHA for c76a231
exercises/practice/largest-series-product/.meta/proof.ci.js
@@ -3,14 +3,14 @@ export const largestProduct = (digits, seriesLength) => {
3
return 1;
4
}
5
if (seriesLength > digits.length) {
6
- throw new Error('Span must be smaller than string length');
+ throw new Error('span must be smaller than string length');
7
8
if (seriesLength < 0) {
9
- throw new Error('Span must be greater than zero');
+ throw new Error('span must not be negative');
10
11
12
if (!/^[0-9]+$/g.test(digits)) {
13
- throw new Error('Digits input must only contain digits');
+ throw new Error('digits input must only contain digits');
14
15
16
let result = 0;
0 commit comments