title: Why is my onClick button not working inside EJS?
body: <p>I have a function inside a js file namded helper.js. I have already acessed this file and called the function inside my EJS on page load. However I cannot get my onClick button to call the function. Any help with this problem is much appreciated. Here is the EJS file code:</p>
  <p><code> &lt;button onClick= &quot;&lt;%helper.openNav()%&gt;&quot; class = &quot;bro&quot;&gt; Click me &lt;/button&gt;</code></p>
  <p>Here is the function inside the helper.js file:</p>
  <pre><code>function openNav(){
  
  console.log('hello')
  }
  ;
  
  module.exports = {
      openNav: openNav,
  }
  </code></pre>