The repeat() method of a string constructs and returns a new string which contains the specified number of copies on which it was called, concatenated together. Here is an example to demonstrate this:
console.log("a".repeat(6)); //Output "aaaaaa"
The repeat() method of a string constructs and returns a new string which contains the specified number of copies on which it was called, concatenated together. Here is an example to demonstrate this:
console.log("a".repeat(6)); //Output "aaaaaa"
3.138.190.130