Which method is used to repeat a string a specified number of times in JavaScript?
a. repeat()
b. replicate()
c. duplicate()
d. copy()
This question is part of this quiz :