Commit f9bca95
authored
Refactor repeatStr to use parameters and add error handling
Refactor repeatStr function to accept parameters for string and count, and add error handling for invalid count.1 parent cad1f0d commit f9bca95
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
0 commit comments