I would like to create a table with the information from an array. I have created a table, however I am unable to pass the array into the table. I would like it to create a table automatically from the array.
<table class="col-3 table tableforContact" id="contactinformation">
<thead>
<tr>
</tr>
</thead>
<tbody>
</tbody>
</table>
This is how I define my array:
const responses = JSON.parse(user.Contacts)
Finally, this is the content in the array:
[{"ContactName": "45551134", "ContactNumber": "95011225"}]