Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

String.prototype.repeat()

2 tags 1 category

The repeat() method of String values constructs and returns a new string which contains the specified number of copies of this string, concatenated together.

Return value: A new string containing the specified number of copies of the given string.

Parameters: count An integer between 0 and Infinity, indicating the number of times to repeat the string.

Syntax example: repeat(count)

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…