title: How to add new row on table to localstorage?
body: <p>I want to make new row to the table and want to be able to save it on local storage so it doesn't get lost next time I reload the page. I have tried everything and I can't just do it please help!!!</p>
  
  <p>It would be nice if someone could help me.</p>
  
  <pre><code>&lt;table id="table"&gt;
      &lt;tr&gt;
          &lt;th class="lines"&gt;Company&lt;/th&gt;
          &lt;th class="lines"&gt;1&lt;/th&gt;
          &lt;th class="lines"&gt;2&lt;/th&gt;
          &lt;th class="lines"&gt;3&lt;/th&gt;
          &lt;th class="lines"&gt;4&lt;/th&gt;
          &lt;th class="lines"&gt;5&lt;/th&gt;
          &lt;th class="lines"&gt;6&lt;/th&gt;
          &lt;th class="lines"&gt;7&lt;/th&gt;
          &lt;th class="lines"&gt;8&lt;/th&gt;
          &lt;th class="lines"&gt;9&lt;/th&gt;
          &lt;th class="lines"&gt;10&lt;/th&gt;
          &lt;th class="lines"&gt;11&lt;/th&gt;
          &lt;th class="lines"&gt;12&lt;/th&gt;
          &lt;th class="lines"&gt;13&lt;/th&gt;
          &lt;th class="lines"&gt;14&lt;/th&gt;
          &lt;th class="lines"&gt;15&lt;/th&gt;
          &lt;th class="lines"&gt;16&lt;/th&gt;
          &lt;th class="lines"&gt;17&lt;/th&gt;
          &lt;th class="lines"&gt;18&lt;/th&gt;
          &lt;th class="lines"&gt;19&lt;/th&gt;
          &lt;th class="lines"&gt;20&lt;/th&gt;
          &lt;th class="lines"&gt;21&lt;/th&gt;
          &lt;th class="lines"&gt;22&lt;/th&gt;
          &lt;th class="lines"&gt;23&lt;/th&gt;
          &lt;th class="lines"&gt;24&lt;/th&gt;
          &lt;th class="lines"&gt;25&lt;/th&gt;
          &lt;th class="lines"&gt;26&lt;/th&gt;
          &lt;th class="lines"&gt;27&lt;/th&gt;
          &lt;th class="lines"&gt;28&lt;/th&gt;
          &lt;th class="lines"&gt;29&lt;/th&gt;
          &lt;th class="lines"&gt;30&lt;/th&gt;
    &lt;/tr&gt;
  
  
  &lt;/table&gt;
  
  </code></pre>
  
  <pre><code>
  
  function AddNewCompanyToTable(){
    var X =  document.getElementById("AddingNewCompanyNameInput").value
  
    var table = document.getElementById("table");
    var row = table.insertRow(-1);
    var cell1 = row.insertCell(0);
    cell1.innerHTML = X;
  
  // I dont have no idea after this
    v = cell1.innerHTML
    localStorage.setItem(v, cell1.innerHTML)
  
  }
  
  </code></pre>