title: Creating a table into div using JavaScript
body: <p>HTML</p>
  
  <pre><code>       &lt;h1&gt;Javascript Playground&lt;/h1&gt;
  
          &lt;div id="first"&gt;&lt;/div&gt;
          &lt;div id="second"&gt;&lt;/div&gt;
  
      &lt;/body&gt;
  </code></pre>
  
  <p>I need to insert a table into the div with this information, including columns for code, title and offering without touching the HTML (only using JavaScript)</p>
  
  <pre><code>let units = [
      {
          'code': 'COMP2110',
          'title': 'Web Technology', 
          'offering': 'S1'
      },  
      {
          'code': 'COMP2010',
          'title': 'Algorithms and Data Structures', 
          'offering': 'S1'
      },
  
  ]
  </code></pre>