Repeat String

Repeat a string a specified number of times to create a new concatenated string.

Code

General
str.repeat(count);

Parameters

The string to repeat

Number of times to repeat

Browser·fetch() may be limited by CORS

More JavaScript Snippets