title: How can I add a row to a table with JavaScript?
body: <p>I have a table following below:</p>
  <pre><code>&lt;table id=&quot;users&quot;&gt;
              &lt;tr&gt;
                  &lt;td&gt;Row Number&lt;/td&gt;
                  &lt;td&gt;Name and Surname&lt;/td&gt;
                  &lt;td&gt;Apartment number&lt;/td&gt;
                  &lt;td&gt; Status &lt;/td&gt;
                  &lt;td&gt; E- mail&lt;/td&gt;
                  &lt;td&gt; Rent Debt&lt;/td&gt;
                  &lt;td&gt;Edit User&lt;/td&gt;
                  &lt;td&gt;Send Mail&lt;/td&gt;
                  &lt;td&gt;Remove User&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  </code></pre>
  <p>and I want to add following row 10 times to the table:</p>
  <pre><code>&lt;tr id=&quot;myRow&quot;&gt;
                  &lt;td id=&quot;rowNumber&quot; align=&quot;center&quot;&gt; &lt;/td&gt;
                  &lt;td id=&quot;name&quot; align=&quot;center&quot;&gt;&lt;/td&gt;
                  &lt;td id=&quot;aptNumber&quot; align=&quot;center&quot;&gt;&lt;/td&gt;
                  &lt;td id=&quot;status&quot; align=&quot;center&quot;&gt;&lt;/td&gt;
                  &lt;td id=&quot;mailAddress&quot;&gt;&lt;/td&gt;
                  &lt;td id=&quot;rentDebt&quot; align=&quot;center&quot;&gt;&lt;/td&gt;
                  &lt;td id=&quot;editButton&quot; align=&quot;center&quot;&gt;&lt;/td&gt;
                  &lt;td id=&quot;mailButton&quot; align=&quot;center&quot;&gt;&lt;/td&gt;
                  &lt;td id=&quot;removeButton&quot; align=&quot;center&quot;&gt;&lt;/td&gt;
              &lt;/tr&gt;
  </code></pre>
  <p>How can I do this with JavaScript? I tried to use loop but I did not manage to do this.</p>