function myEvent(e) {
var evtType = e.type
alert(evtType)
// displays click, or whatever the event type was
}
how does this work as a call back function? like how does it know that when there is a parameter declared inside a function, it should store an event object in it? is it same for non call back functions too? I don't get it, how does it know that when we declared a variable inside a callback function it will get to store the events automatically , as we never mentioned about it? so what will happen if I give more that one parameter in the callback function?