JavaScript string method repeat(): repeating a string n times
The next method is repeat(). You use it to repeat a string: you pass in a count and it returns a new string made up of that many copies.
The next method is repeat(). You use it to repeat a string: you pass in a count and it returns a new string made up of that many copies.