title: add_vat:127 Uncaught SyntaxError: Unexpected token 'delete'
body: <p>Hello i have a problem with my js code. I get an error Uncaught SyntaxError: Unexpected token 'delete'. I just don't understand what wrong could I do in making a function.</p>
  <pre><code>        &lt;script type=&quot;text/javascript&quot;&gt;
               window.onload = function() 
               {
                   var id_count = 1;
                   var btn = document.getElementById(&quot;add_product&quot;);
                   btn.addEventListener(&quot;click&quot;, function()
                   {
                       id_count += 1;
                       document.getElementById(&quot;products_table&quot;).innerHTML +=
                       &quot;&lt;tr id='&quot; + id_count +&quot;'&gt;\
                           &lt;td&gt;&quot; + id_count +&quot;&lt;/td&gt;\
                           &lt;td&gt;&lt;input type='text' class='form-control' name='name' id='name&quot; + id_count +&quot;' placeholder='Jane Doe'&gt;&lt;/td&gt;\
                           &lt;td&gt;&lt;input type='number' class='form-control' name='count' id='count&quot; + id_count +&quot;' placeholder='jane.doe@example.com'&gt;&lt;/td&gt;\
                           &lt;td&gt;&lt;input type='text' class='form-control' name='price_netto' id='price_netto&quot; + id_count +&quot;' placeholder='jane.doe@example.com'&gt;&lt;/td&gt;\
                           &lt;td class='input-group'&gt;&lt;input type='text' class='form-control' name='vat_rate' id='vat_rate&quot; + id_count +&quot;' placeholder='jane.doe@example.com'&gt;\
                               &lt;span class='input-group-addon'&gt;%&lt;/span&gt;\
                           &lt;/td&gt;\
                           &lt;td&gt;&lt;input type='text' class='form-control' name='price_brutto' id='price_brutto&quot; + id_count +&quot;' placeholder='jane.doe@example.com'&gt;&lt;/td&gt;\
                           &lt;td&gt;&lt;button type='button' onclick='document.getElementById(&quot; + id_count +&quot;).remove();' class='btn btn-alert'&gt;Usuń&lt;/button&gt;&lt;/td&gt;\
                       &lt;/tr&gt;&quot;;
                   }, false);
  
                   function delete()
                   {
  
                   }
               }
  
          &lt;/script&gt;
  </code></pre>