mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
11 lines
171 B
Markdown
11 lines
171 B
Markdown
|
|
# Exercise 02 - repeatString
|
||
|
|
|
||
|
|
Write a function that simply repeats the string a given number of times:
|
||
|
|
|
||
|
|
```javascript
|
||
|
|
repeatString('hey', 3) // returns 'heyheyhey'
|
||
|
|
```
|
||
|
|
|
||
|
|
|
||
|
|
|