title: Javascript collection of DOM objects - why can't I reverse with Array.reverse()?
body: <p>What could be the problem with reversing the array of DOM objects as in the following code:</p>
  
  <pre><code>var imagesArr = new Array();
  imagesArr = document.getElementById("myDivHolderId").getElementsByTagName("img");
  imagesArr.reverse();
  </code></pre>
  
  <p>In Firefox 3, when I call the <code>reverse()</code> method the script stops executing and shows the following error in the console of the Web Developer Toolbar:</p>
  
  <pre class="lang-none prettyprint-override"><code>imagesArr.reverse is not a function
  </code></pre>
  
  <p>The <code>imagesArr</code> variable can be iterated through with a for loop and elements like <code>imagesArr[i]</code> can be accessed, so why is it not seen as an array when calling the <code>reverse()</code> method?</p>