title: Void function return value is used JavaScript
body: <pre class="lang-js prettyprint-override"><code>let btn = document.createElement(&quot;button&quot;);
  btn.id = &quot;submitBV&quot;
  let firstRow = 12
  let lastRow = 59
  btn.addEventListener(&quot;click&quot;, autoInput(firstRow, lastRow))
  
  function autoInput(firstRow, lastRow){
      print()
  }
  </code></pre>
  <p>It tells me <code>Void function return value is used</code> (<a href="https://i.imgur.com/aIIDZ01.png" rel="nofollow noreferrer">screenshot</a>).</p>
  <p>After I add a <code>return 1</code>, it doesn't solve as well (<a href="https://i.imgur.com/gwEoSqd.png" rel="nofollow noreferrer">screenshot2</a>).</p>