I want to convert a nested array to a HTML table where I have assign table_header
.
Likewise, first subarray in Column_1
and second subarray in Column_2
.
const arr = [
[
"abc",
"gsdg",
"fsvth",
"rewurths",
"ejgfjsgfns",
"sdbqeqtjhbq"
],
[
"ryethabe"
]
]
<table id="table">
<thead>
<tr>
<th>Column_1</th>
<th>Column_2</th>
</tr>
</thead>
<tbody id="table_data_response">
</tbody>
</table>