# RepeatString()

Creates a string that contains a specified number of
repetitions of the specified string.

```
RepeatString( string=string, count=number );
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| string | string | Yes | A string or a variable that contains one. |  |
| count | number | Yes | The number of times to repeat the string. |  |

# Examples

```1

writeDump(repeatString("Hi buddy!, Have a nice day.",2));

//Member function
str="I love Lucee ";
writeDump(str.repeatString(3));

```







# Categories

[Strings](../../categories/string.md)

# See Also

[string.repeatString()](../objects/string/repeatstring.md)