repeat string number of times js code example Example: repeat string n times javascript "a".repeat(10)