Create string of n characters without loop

Viewed 3388

In Python I can use:

s = "x" * 10
xxxxxxxxxx

How in JavaScript, do I create a string n characters long without a loop?

3 Answers
Related