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 698480c commit 2a88d09Copy full SHA for 2a88d09
06_repeatString/README.md
@@ -6,7 +6,7 @@ Write a function that simply repeats the string a given number of times:
6
repeatString('hey', 3) // returns 'heyheyhey'
7
```
8
9
-This function will take two arguments, `string` and `num`.
+This function will take two arguments, `string` and `num`. If `num` is a negative number, return the string `'ERROR'` instead.
10
11
Use loops to implement `repeatString` rather than using the builtin `String.prototype.repeat` which has the same behaviour.
12
0 commit comments