title: Is there any way to call a function in a separate js file for jquery click() function?
body: <p>I am trying to trigger a confetti animation to play when a <code>button</code> is clicked. Is it possible to add a function from a separate JS file in the argument of <code>click</code>?</p>
  
  <p>For example,</p>
  
  <pre><code>$('#test').click(
    // function in separate test.js file
  );
  </code></pre>