title: Javascript add item to current array
body: <p>I am trying to add an item to a current array.</p>
  
  <pre><code>var arrayValues = new Array();
  arrayValues.push("Value 1");
  arrayValues.push("Value 2");
  arrayValues = document.getElementsByTagName('a');
  arrayValues.push("Value 3");
  </code></pre>
  
  <p>By doing this way I get a error, and I dont get value 1 and value 2, after getting the hyperlink collection when I try to add a new item it throws Error: Object doesn't support this property or method which is the push method.</p>
  
  <p>What is happening to the array after the collection of hyperlinks is assigned ? How can I add a new item to it ?</p>