title: How to reset the value of all buttons with one button
body: <p>I can't figure out how to reset the value of all buttons back to 0 as default by just one reset button, can anyone help please?</p>
  <p>JS</p>
  <pre><code>var button1 = 0;
  var button1 = 0;
  
  function onClick1() {
    button1 += 1;
    document.getElementById(&quot;button1&quot;).innerHTML = button1;
    };
  
   function onClick2() {
    button2 += 1;
    document.getElementById(&quot;button2&quot;).innerHTML = button2;
   };
  </code></pre>
  <p>HTML</p>
  <pre><code>&lt;button type=&quot;button&quot; onClick=&quot;onClick1()&quot;&gt;Click&lt;/button&gt;
  &lt;p&gt;&lt;a id=&quot;button1&quot;&gt;0&lt;/a&gt;&lt;/p&gt;
  &lt;button type=&quot;button&quot; onClick=&quot;onClick2()&quot;&gt;Click&lt;/button&gt;
  &lt;p&gt;&lt;a id=&quot;button2&quot;&gt;0&lt;/a&gt;&lt;/p&gt;
  </code></pre>