jQuery Choice Questions

Question 1 of 82

What is the difference between these two snippets?

$('button').on('click', function () {
  alert('you clicked the button!');
});
$('button').click(function () {
  alert('you clicked the button!');
});

Time Remaining:01:30

Questions: 1/82