title: Repeat a string in JavaScript a number of times
body: <p>In Perl I can repeat a character multiple times using the syntax:</p>
  
  <pre><code>$a = "a" x 10; // results in "aaaaaaaaaa"
  </code></pre>
  
  <p>Is there a simple way to accomplish this in Javascript? I can obviously use a function, but I was wondering if there was any built in approach, or some other clever technique.</p>