title: Create HTML table from javascript array
body: <p>I want to get all classes of the HTML element on my page, split it and store it in array. After that I want to write it into my table in the div with the id "table" which I already have.</p>
  
  <p>So far I have this code:</p>
  
  <pre><code>var string = $('html').attr('class');
  var array = string.split(' ');
  var arrayLength = parseInt(array.length);
  
  for (i=0; i&lt;=arrayLength; i++) {
      // code
  }
  
  &lt;div id="test&gt;&lt;!-- table goes here --&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Can you help me with the rest?</p>
  
  <p>btw, the HTML element has the classes from a modernizr.js.</p>
  
  <p>PS: The code is combination of pure JS and jQuery. Because I dont know how to get all classes of the HTML element in pure JS. Any Idea?</p>