In JavaScript, what is event handling? What are the two types of events?
In JavaScript capturing events and responding to them is event handling. The system sends events to the program and the program responds to them as they arrive.
1. Events can involve things a user does - such as clicking the mouse.
2. Events which the system itself does - like updating the clock.