# REPT

The REPT function repeats a given text string a specified number of times. Node references are also accepted as arguments.

### Syntax

```javascript
rept(value:string, count:number)
```

### Arguments

value- A text string. Required.&#x20;

count- A number indicating how many times the string should be repeated. Required.&#x20;

## Example

```javascript
rept('LUMEL', 3)
//Returns “LUMELLUMELLUMEL".
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F6o1JXlxgifaigKSQ7P6Z%2Fimage.png?alt=media&#x26;token=d6ac57e8-6b97-4a99-b64e-3a7fb5f96d3d" alt=""><figcaption><p>REPT function</p></figcaption></figure>

### **Excel equivalent**

[**Rept**](https://support.microsoft.com/en-us/office/rept-function-04c4d778-e712-43b4-9c15-d656582bb061)
