function(e)

function(e)

Hey,

when do i use function(e) and when do i use only function()?

  1. $('a').click(function(e) {
            var $this = $(this);
            if ($this.attr('href').match('google')) {
                e.preventDefault();
             
            }
        });





In this little example I have to use it but i dont understand in which cases I have to use it?

Anyone an easy explanation to help me?