Question: We want to create a new jQuery plugin called linkUpdater that can be chained onto other jQuery selector like a normal plugin. It should update all the links in the referenced collection so they open in new windows or tabs. Below is the first cut. What is one problem with this plugin?

  1. this needs to be wrapped, like `$(this)`, in order to be chained in a plugin.
  2. jQuery plugins can't be safely authored in strict mode.
  3. In order to be used by other code, plugins need to be added to the global namespace, not wrapped in a function expression.
  4. Our plugin should extend jQuery.fn, not jQuery itself.

Answer: The correct answer of the above question is Option D:Our plugin should extend jQuery.fn, not jQuery itself.