title: Put multiple elements to JavaScript Array
body: <p>In <strong><em>JavaScript</em></strong> I am filling <strong><em>array</em></strong> elements by traditional way, such as:</p>
  
  <pre><code>myArray[12] = 123;
  myArray[13] = 432;
  myArray[14] = 233;
  myArray[15] = 98;
  </code></pre>
  
  <p>Is it possible to do this faster by one command?</p>
  
  <p>For example to put numbers <code>[123, 432, 233, 98]</code> to <code>myArray[12-15]</code> ... somehow? Not one by one.</p>
  
  <hr>
  
  <p>And how can be optimized this kind of scenario:</p>
  
  <pre><code>newArray[12] = oldArray[30];
  newArray[13] = oldArray[31];
  newArray[14] = oldArray[32];
  newArray[15] = oldArray[33];
  </code></pre>
  
  <p>when n elements (4 in the above example) next each to other from one array need to be moved to another array?</p>
  
  <p>Please advice.</p>