odin-default-js-exercises/repeatString/README.md

171 B

Exercise 02 - repeatString

Write a function that simply repeats the string a given number of times:

repeatString('hey', 3) // returns 'heyheyhey'