Web features explorer

String repeat()

Widely available since 2018-03-30
Tags: javascript Groups: JavaScript > Primitive types > Strings

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

Learning resources on MDN

Browser support

Specifications