Is there any performance difference between:
Example 1:
$(window).on('resize', abc);
function abc(){
//some abc code
}
Example 2:
$(window).on('resize', function(){
//some abc code
});
If yes, what are the pros and cons of each?
If no, which is the preferred practice?