add generator and repeatString

This commit is contained in:
Cody Loyd
2017-08-21 10:28:29 -05:00
parent 85ca46440e
commit fd5b062516
21 changed files with 4116 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# Exercise 02 - repeatString
Write a function that simply repeats the string a given number of times:
```javascript
repeatString('hey', 3) // returns 'heyheyhey'
```