Web features explorer

String repeat()

Widely available
Tags: javascript Groups: JavaScript > Primitive types > Strings

The repeat() method of strings returns the original string repeated a number of times. To learn more, see String.prototype.repeat() at MDN.

Compatibility

Specifications