DEV Community

repeat() - JavaScript

asiddharth94 on March 12, 2020

The repeat() is called on a string which takes one argument (number of times the string needs to be repeated) and returns a new string , containing...