Repeat returns a new string containing the provided string copied and concatenated for the number of times given in the parameter
string
(string): input stringcount
(Number): number of times to repeat the string
(string): string containing the specified number of copies of the given string
const result = strings.repeat('Moo', 3);
console.log(result);
> 'Moo Moo Moo '