title: How do you remove a element by id?
body: <p>Hi I am trying to get a few buttons to work but all the other things I found didnt work here it is</p>
  <pre><code>document.getElementById(&quot;Element&quot;).remove();
  </code></pre>
  <p>isnt working</p>
  <pre><code>&lt;button class=&quot;btn btn-danger&quot; onclick=&quot;reset()&quot;&gt;Reset&lt;/button&gt;
  </code></pre>
  <p>Error:</p>
  <pre><code>script.js:30 Uncaught TypeError: Cannot read property 'remove' of null
  at reset (script.js:30)
  at HTMLButtonElement.onclick (index.html:14)
  </code></pre>
  <p>Im sorry if this is formatted weird but I am new to this.</p>