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 6a8425e commit f047e59Copy full SHA for f047e59
Sprint-3/2-practice-tdd/repeat-str.js
@@ -1,6 +1,6 @@
1
-function repeatStr(str,count) {
+function repeatStr(str, count) {
2
if (count < 0) {
3
- throw new Error("Count must be a non-negative");
+ throw new Error("Count must be a non-negative integer");
4
}
5
return str.repeat(count);
6
0 commit comments