title: Passing The Right Series Of Arguments
body: <p>In one HTML page, I have 2 onclick events like this :</p>
  <pre><code>onclick=&quot;clear_input('button1', 'hello1','world1');&quot;
  onclick=&quot;clear_input('button2','hello2','world2');&quot;
   
  </code></pre>
  <p>In a JS file I have this :</p>
  <pre><code>function clear_input(a, b, c) {
  
  var text = document.getElementById(b);
  
  var button = document.getElementById(a);
  
  …
  
  }
  </code></pre>
  <p>It all works. Now I want to get rid of the inline JS and implement in the JS file an addEventListener that could process any one of the 2 onclick events. How do I pass the right series of arguments ?</p>