var abc = '5';
$('#test').click(meraFunc(abc));
function meraFunc(abc)
{
alert(abc);
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<input type="button" id="test" value="testMe">
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?