title: Pure JavaScript select table row as object when click
body: <p>I have a table as following I need when click on a row cell select this row and convert as a JavaScript object using pure JavaScript.</p>
  
  <pre><code>&lt;table id="auditors"&gt;
    &lt;tr&gt;
      &lt;th&gt;Firstname&lt;/th&gt;
      &lt;th&gt;Lastname&lt;/th&gt; 
      &lt;th&gt;Age&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Jill&lt;/td&gt;
      &lt;td&gt;Smith&lt;/td&gt; 
      &lt;td&gt;50&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Eve&lt;/td&gt;
      &lt;td&gt;Jackson&lt;/td&gt; 
      &lt;td&gt;94&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>