title: JavaScript Create Table and filling with an array content
body: <p>I need to create a table in JS which have 3 cells in the first row and in the rest (20 rows) 4 column.
  How should I do it work properly if I want to fill the rows from an array value?
  So I have myArray[0, 1, 2, 3...] and those values need to insert into the table starting with the second row. (First is like header row)</p>
  <pre><code>        const apptid_divs11 = [...document.querySelectorAll('.apptSearchResultSelected')];
      const apptid_set11 = new Set(apptid_divs11.map(div =&gt; div.textContent.trim().split('#')[0]))
  </code></pre>
  <p>The apptid_set11 values needs to go to the table, but the size of the array is always changing</p>