String Manipulation Methods

What is the purpose of the repeat() method in string manipulation?
const str = 'Hello';
const repeated = str.repeat(3);
Next Question (13/20)