The repeat(count) method

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"
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.190.130