how does the 'e' of javascript work? [duplicate]

1

In some of the codes I see, some people use the 'e' character in functions like:

function NomeDaFuncao(e){ 
  alert("teste");
}

I would like to know how it works, what it does, and some examples where I can use it.

    
asked by anonymous 30.08.2017 / 22:37

1 answer

4

Use is only a short event. You can pass any variable name you want.

$('#myTable').click(function(anyothername) {
    var clicked = $(anyothername.target);
});

You can check out more about treatment of jQuery events .

    
30.08.2017 / 22:40