title: I want to replace all values with another array values , both arrays are in same size
body: <p>eg:</p>
  
  <pre><code>var Array1=array(1,2,3,4,5,6);
  var Array2=array(7,8,9,10,11,12);
  </code></pre>
  
  <p>after replacing <code>Array2</code> with <code>Array1</code> values
  Resulting array should be</p>
  
  <pre><code>var Array1=array(7,8,9,10,11,12);
  </code></pre>