title: jQuery function passing parameters
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var abc = '5';
  $('#test').click(meraFunc(abc));
  function meraFunc(abc)
  {
    alert(abc);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;input type="button" id="test" value="testMe"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>when I load the page, alert pops up showing '5' [I havent yet clicked the button]. And when I click the button, nothing happens. Is this the right way to pass the arguments in jQuery? </p>