I have created custom function with function name as $
.
function $(){
alert("Test");
}
jQuery(function(){
alert($);
});
When I run this, I get the function body in the alert. But, when I debug this code, on keeping the break-point at alert($)
in the browser(Chrome), I also get alert("Test")
before the function body.
The same behavior is reproducible on the JSFiddle.
Can someone explain this behavior?