In Python I can use: s = "x" * 10 xxxxxxxxxx How in JavaScript, do I create a string n characters long without a loop?