HTML
<h1>Javascript Playground</h1>
<div id="first"></div>
<div id="second"></div>
</body>
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)
let units = [
{
'code': 'COMP2110',
'title': 'Web Technology',
'offering': 'S1'
},
{
'code': 'COMP2010',
'title': 'Algorithms and Data Structures',
'offering': 'S1'
},
]