title: Adding id to html table row in JavaScript
body: <p>The rows in my table have unique id, example: <code>&lt;tr id = "tb6"&gt;</code>
  I am appending new rows by javascript in this way:</p>
  
  <pre><code>var table = document.getElementById(f);
  var row = table.insertRow();
  var cell1 = row.insertCell();
  var cell2 = row.insertCell();
  cell1.innerHTML = text1;
  cell2.innerHTML = text2;
  </code></pre>
  
  <p>How do I add id to this newly created row in vanilla javascript (not jquery).</p>