mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-12 03:06:05 +09:00
add generator and repeatString
This commit is contained in:
@@ -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'
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user