title: Convert HTMLCollection to an array with JavaScript
body: <p>I want to get all the HTML elements with the class &quot;Box&quot; and then that collection convert it to an Array so i can acces each element throught position.</p>
  <p>This is the code i made:</p>
  <pre><code>function BoxAppearence() {
      
      var BoxCollection = document.getElementsByClassName(&quot;Box&quot;);
      console.log(BoxCollection)
      var Box = BoxCollection.split(&quot;&quot;);
      console.log(Box)
      
      console.log(Box[12])
  }
  
  BoxAppearence();
  </code></pre>