dsa | sp javascript string | Question 10

Last Updated :
Discuss
Comments

Which method is used to repeat a string a specified number of times in JavaScript?

a. repeat()

b. replicate()

c. duplicate()

d. copy()

Share your thoughts in the comments