Question: What's the difference between these two snippets?

  1. Only the second one will work; jQuery does not have a function called `.on`.
  2. The second snippet will not function.
  3. Nothing `.click(function)` is shorter way to write `.on('click', function)`.
  4. The first snippet will execute for every button on the page, the second will only apply to the first button.

Answer: The correct answer of the above question is Option C:Nothing `.click(function)` is shorter way to write `.on('click', function)`.