javascript repeat a character n times code example Example: repeat string n times javascript "a".repeat(10)