JavaScript
JavaScript string repeat count was negative
JavaScript rejected a string repeat operation because the repeat count was negative.
JavaScript
JavaScript rejected a string repeat operation because the repeat count was negative.
Observed message
RangeError: repeat count must be non-negative
Why it happens
How to fix it
Official reference
MDN: RangeError: repeat count must be non-negativeRelated errors
Explore more