February 2018
Intermediate to advanced
298 pages
8h 22m
English
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"
Read now
Unlock full access