Web features explorer

String repeat()

Widely available
Tags: js Groups: Strings Primitive types JavaScript

The repeat() method of strings returns the original string repeated a number of times.

Compatibility

MDN docs

Specifications

BCD data