Returns a string that is a repeat of its argument.
The expression
repeat('ha', 3)
will result in ‘hahaha’.
repeat(string str, int rep)
string
rep : int number of times to repeat str
int
Function repeat returns rep copies of the string specified by str.
repeat
Content