Quiz on Events and Event Handlers

Check your understanding of the concepts of events and event handlers.

1

The syntax for event handler assignment is:

A)
$('selector').event(function(eventObj){
    // response to event goes here
});
B)
$('selector').on('event', function(eventObj){
    // response to event goes here
});
C)
$('selector').on({
  event: function(){
    // response to event goes here
  }
});
D)

All of the above

Question 1 of 60 attempted

Get hands-on with 1200+ tech skills courses.